Require modifier keys for script keybinding capture
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
191883e599
commit
442bab63e8
1 file changed
+3
@@ -122,6 +122,9 @@ function keybindingFromEvent(event: KeyboardEvent<HTMLInputElement>): string | n
|
||||
}
|
||||
if (event.altKey) parts.push("alt");
|
||||
if (event.shiftKey) parts.push("shift");
|
||||
if (parts.length === 0) {
|
||||
return null;
|
||||
}
|
||||
parts.push(keyToken);
|
||||
return parts.join("+");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user