From d3d926875f137b3b25d7a2beee14e5d73ca9aab9 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Fri, 8 Sep 2023 09:03:58 +1000 Subject: Additional data sanitization in media service and keyboard shortcuts --- wwwroot/js/keyboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wwwroot') 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')) -- cgit v1.3