summaryrefslogtreecommitdiff
path: root/wwwroot
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-25 16:15:20 +1000
committerJake Mannens <jakem_5@hotmail.com>2026-01-14 20:30:38 +1100
commitf9ed4f109bf216579ad241d33fd223403c9a72fb (patch)
tree7356b7f1a0969ac6e7844683ac39f9539f9e7532 /wwwroot
parenta440be4df759c7d317c1574ce1132fab807494f2 (diff)
Keyboard shortcuts no longer apply to buttons if CTRL key is held
Diffstat (limited to 'wwwroot')
-rw-r--r--wwwroot/js/keyboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/wwwroot/js/keyboard.js b/wwwroot/js/keyboard.js
index 392a7d1..72ed3cb 100644
--- a/wwwroot/js/keyboard.js
+++ b/wwwroot/js/keyboard.js
@@ -41,7 +41,7 @@ async function keyDownHandler(e) {
.filter(b => !isDialogChild(b))
.find(b => b.dataset.keyboardShortcut == e.key);
- if(button) {
+ if(!e.ctrlKey && button) {
button.click();
e.preventDefault();
return;