mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:59:59 +02:00
Update ZenKeyboardShortcuts.mjs
This commit is contained in:
parent
9e06101fe3
commit
809560eaa3
1 changed files with 12 additions and 14 deletions
|
@ -567,20 +567,6 @@ function zenGetDefaultShortcuts() {
|
|||
newShortcutList.push(parsed);
|
||||
}
|
||||
|
||||
// Explain: How to add shortcuts
|
||||
/*
|
||||
newShortcutList.push(
|
||||
new KeyShortcut(
|
||||
'ID_OF_SHORTCUT',
|
||||
'KEYCODE',
|
||||
'',
|
||||
GROUP_OF_SHORTCUT,
|
||||
KeyShortcutModifiers.fromObject({ accel: true, alt: true }), //accel = Ctrl/Cmd, Alt = Alt/Option
|
||||
'code:NATIVE_CODE_FUNCTION()',
|
||||
'L10N_STRING_FOR_TRANSLATION'
|
||||
)
|
||||
);
|
||||
*/
|
||||
// Compact mode's keyset
|
||||
newShortcutList.push(
|
||||
new KeyShortcut(
|
||||
|
@ -787,6 +773,18 @@ class ZenKeyboardShortcutsVersioner {
|
|||
}
|
||||
|
||||
migrate(data, version) {
|
||||
// Explain: How to add shortcuts
|
||||
/*
|
||||
new KeyShortcut(
|
||||
'ID_OF_SHORTCUT',
|
||||
'KEYCODE',
|
||||
'',
|
||||
GROUP_OF_SHORTCUT,
|
||||
KeyShortcutModifiers.fromObject({ accel: true, alt: true }), //accel = Ctrl/Cmd, Alt = Alt/Option
|
||||
'code:NATIVE_CODE_FUNCTION()',
|
||||
'L10N_STRING_FOR_TRANSLATION'
|
||||
)
|
||||
*/
|
||||
if (version < 1) {
|
||||
// Migrate from 0 to 1
|
||||
// Here, we do a complet reset of the shortcuts,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue