From 809560eaa346c3244924a926bde88be980a67caf Mon Sep 17 00:00:00 2001 From: Gunir <134402102+gunir@users.noreply.github.com> Date: Tue, 29 Oct 2024 18:54:17 +0700 Subject: [PATCH] Update ZenKeyboardShortcuts.mjs --- src/ZenKeyboardShortcuts.mjs | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/ZenKeyboardShortcuts.mjs b/src/ZenKeyboardShortcuts.mjs index 294f1a6..79e095d 100644 --- a/src/ZenKeyboardShortcuts.mjs +++ b/src/ZenKeyboardShortcuts.mjs @@ -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,