mirror of
https://github.com/zen-browser/desktop.git
synced 2025-07-10 05:35:29 +02:00
Refactor URL bar behavior, update compact mode styles, and enhance sidebar animations
This commit is contained in:
parent
37f5756ddb
commit
a35c0fc1a7
6 changed files with 83 additions and 41 deletions
|
@ -702,7 +702,7 @@ function zenGetDefaultShortcuts() {
|
|||
}
|
||||
|
||||
class ZenKeyboardShortcutsVersioner {
|
||||
static LATEST_KBS_VERSION = 4;
|
||||
static LATEST_KBS_VERSION = 5;
|
||||
|
||||
constructor() {}
|
||||
|
||||
|
@ -807,6 +807,21 @@ class ZenKeyboardShortcutsVersioner {
|
|||
// since it's not used anymore.
|
||||
data = data.filter((shortcut) => shortcut.getID() != 'zen-toggle-sidebar');
|
||||
}
|
||||
if (version < 5) {
|
||||
// Migrate from 4 to 5
|
||||
// Here, we are adding the 'zen-toggle-sidebar' shortcut back, but with a new action
|
||||
data.push(
|
||||
new KeyShortcut(
|
||||
'zen-toggle-sidebar',
|
||||
'B',
|
||||
'',
|
||||
ZEN_OTHER_SHORTCUTS_GROUP,
|
||||
KeyShortcutModifiers.fromObject({ alt: true }),
|
||||
'code:gZenVerticalTabsManager.toggleExpand()',
|
||||
'zen-sidebar-shortcut-toggle'
|
||||
)
|
||||
);
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue