diff --git a/src/keyBindings/loader.ts b/src/keyBindings/loader.ts index a393343..b113123 100644 --- a/src/keyBindings/loader.ts +++ b/src/keyBindings/loader.ts @@ -38,12 +38,15 @@ function registerKeyBinding(name: string, description: string, keySequence: stri function registerNumKeyBindings(name: string, description: string, modifiers: string, fKeys: boolean, callback: (i: number) => void) { const numPrefix = fKeys ? "F" : ""; const n = fKeys ? 12 : 9; - for (let i = 0; i < n; i++) { + for (let i = 0; i < 12; i++) { const numKey = String(i + 1); + const keySequence = i < n ? + modifiers + "+" + numPrefix + numKey : + ""; registerKeyBinding( name + numKey, description + numKey, - modifiers + "+" + numPrefix + numKey, + keySequence, () => callback(i), ); }