1
0
Fork 1
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:
mr. M 2024-12-14 17:43:17 +01:00
parent 37f5756ddb
commit a35c0fc1a7
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
6 changed files with 83 additions and 41 deletions

View file

@ -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;
}
}