Skip to content

Commit

Permalink
Moved new shortcut to version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
maxthyron committed Nov 28, 2024
1 parent ee5ca70 commit 024eab1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/browser/base/zen-components/ZenKeyboardShortcuts.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,12 @@ class ZenKeyboardShortcutsVersioner {
}
}
if (version < 4) {
// Migrate from 3 to 4
// In this new version, we are just removing the 'zen-toggle-sidebar' shortcut
// since it's not used anymore.
data = data.filter((shortcut) => shortcut.getID() != 'zen-toggle-sidebar');
}
if (version < 5) {
data.push(
new KeyShortcut(
'zen-split-view-rearrange',
Expand All @@ -813,11 +819,6 @@ class ZenKeyboardShortcutsVersioner {
'zen-split-view-shortcut-rearrange'
)
);

// Migrate from 3 to 4
// In this new version, we are just removing the 'zen-toggle-sidebar' shortcut
// since it's not used anymore.
data = data.filter((shortcut) => shortcut.getID() != 'zen-toggle-sidebar');
}
return data;
}
Expand Down

0 comments on commit 024eab1

Please sign in to comment.