mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
Normalize builtin keybinding keys to lowercase
This commit is contained in:
parent
7cacb49af9
commit
5353dd4b7e
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,8 @@ const buildBuiltinKeybindings = (effectiveKeybindings: Required<KeybindingsConfi
|
||||||
const keyList = Array.isArray(keys) ? keys : [keys];
|
const keyList = Array.isArray(keys) ? keys : [keys];
|
||||||
const restrictOverride = RESERVED_ACTIONS_FOR_EXTENSION_CONFLICTS.includes(keyAction);
|
const restrictOverride = RESERVED_ACTIONS_FOR_EXTENSION_CONFLICTS.includes(keyAction);
|
||||||
for (const key of keyList) {
|
for (const key of keyList) {
|
||||||
builtinKeybindings[key] = {
|
const normalizedKey = key.toLowerCase() as KeyId;
|
||||||
|
builtinKeybindings[normalizedKey] = {
|
||||||
action: keyAction,
|
action: keyAction,
|
||||||
restrictOverride: restrictOverride,
|
restrictOverride: restrictOverride,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue