diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-25 16:15:20 +1000 |
|---|---|---|
| committer | Jake Mannens <jakem_5@hotmail.com> | 2026-01-14 20:30:38 +1100 |
| commit | f9ed4f109bf216579ad241d33fd223403c9a72fb (patch) | |
| tree | 7356b7f1a0969ac6e7844683ac39f9539f9e7532 /wwwroot/js | |
| parent | a440be4df759c7d317c1574ce1132fab807494f2 (diff) | |
Keyboard shortcuts no longer apply to buttons if CTRL key is held
Diffstat (limited to 'wwwroot/js')
| -rw-r--r-- | wwwroot/js/keyboard.js | 2 |
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; |
