authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-02-17 22:21:13-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-02-18 00:59:06-08:00
logc8c0dc6c3c3aa99a36f9d29a9718306a62b4727a
treee2dc9c16f8afbd43fc19e54efe155c9aafa113c3
parente52db0bbc2bc6324beec55a5082f624754c845f1

Require modifier keys for script keybinding capture

Co-authored-by: codex <codex@users.noreply.github.com>

1 files changed, 3 insertions(+), 0 deletions(-)

apps/web/src/components/ProjectScriptsControl.tsx+3
......@@ -122,6 +122,9 @@ function keybindingFromEvent(event: KeyboardEvent<HTMLInputElement>): string | n
122122 }
123123 if (event.altKey) parts.push("alt");
124124 if (event.shiftKey) parts.push("shift");
125 if (parts.length === 0) {
126 return null;
127 }
125128 parts.push(keyToken);
126129 return parts.join("+");
127130}