summaryrefslogtreecommitdiff
path: root/wwwroot/js/keyboard.js
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2023-09-08 09:03:58 +1000
committerJake Mannens <jake@asger.xyz>2023-09-08 09:06:35 +1000
commitd3d926875f137b3b25d7a2beee14e5d73ca9aab9 (patch)
tree331098f76d451cab792dad4728984f15389fe8f5 /wwwroot/js/keyboard.js
parenta6ae1e33c6c25c364fcea2e0af23578803f5941d (diff)
Additional data sanitization in media service and keyboard shortcuts
Diffstat (limited to 'wwwroot/js/keyboard.js')
-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 5669637..4c8e722 100644
--- a/wwwroot/js/keyboard.js
+++ b/wwwroot/js/keyboard.js
@@ -6,7 +6,7 @@ async function keyDownHandler(e) {
return false;
}
- if(document.activeElement.tagName == 'INPUT')
+ if(document.activeElement.tagName == 'INPUT' && e.key != 'Escape')
return;
var element = Array.from(document.querySelectorAll('div.dialog'))