mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:29:59 +02:00
Update ZenKeyboardShortcuts.mjs
This commit is contained in:
parent
fb33d61d41
commit
d850d774c0
1 changed files with 57 additions and 0 deletions
|
@ -567,6 +567,20 @@ function zenGetDefaultShortcuts() {
|
||||||
newShortcutList.push(parsed);
|
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
|
// Compact mode's keyset
|
||||||
newShortcutList.push(
|
newShortcutList.push(
|
||||||
new KeyShortcut(
|
new KeyShortcut(
|
||||||
|
@ -709,6 +723,49 @@ function zenGetDefaultShortcuts() {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Added by gunir
|
||||||
|
// Prev Tab Ctrl+Left
|
||||||
|
newShortcutList.push(
|
||||||
|
new KeyShortcut(
|
||||||
|
'zen-previous-tab',
|
||||||
|
'VK_LEFT',
|
||||||
|
'',
|
||||||
|
ZEN_OTHER_SHORTCUTS_GROUP,
|
||||||
|
KeyShortcutModifiers.fromObject({ accel: true }),
|
||||||
|
"code:gBrowser.tabContainer.advanceSelectedTab(-1, true);",
|
||||||
|
'zen-shortcut-previous-tab'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
// Next Tab Ctrl+Right
|
||||||
|
newShortcutList.push(
|
||||||
|
new KeyShortcut(
|
||||||
|
'zen-next-tab',
|
||||||
|
'VK_RIGHT',
|
||||||
|
'',
|
||||||
|
ZEN_OTHER_SHORTCUTS_GROUP,
|
||||||
|
KeyShortcutModifiers.fromObject({ accel: true }),
|
||||||
|
"code:gBrowser.tabContainer.advanceSelectedTab(1, true);",
|
||||||
|
'zen-shortcut-next-tab'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
// Open Settings
|
||||||
|
newShortcutList.push(
|
||||||
|
new KeyShortcut(
|
||||||
|
'zen-next-tab',
|
||||||
|
',',
|
||||||
|
'',
|
||||||
|
ZEN_OTHER_SHORTCUTS_GROUP,
|
||||||
|
KeyShortcutModifiers.fromObject({ accel: true }),
|
||||||
|
"code:gBrowser.tabContainer.advanceSelectedTab(1, true);",
|
||||||
|
'zen-shortcut-next-tab'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return newShortcutList;
|
return newShortcutList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue