From a8ac375cf387317864c2a2813aa039bf586ca901 Mon Sep 17 00:00:00 2001 From: Robert Goldmann <deadlocker@gmx.de> Date: Sat, 21 Nov 2020 19:38:52 +0100 Subject: [PATCH] #533 - prevent catching "enter" hotkey if global search is focused --- src/main/resources/static/js/templates.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/js/templates.js b/src/main/resources/static/js/templates.js index 258afb984..3a760071d 100644 --- a/src/main/resources/static/js/templates.js +++ b/src/main/resources/static/js/templates.js @@ -123,8 +123,13 @@ function enableHotKeys() Mousetrap.bind('enter', function() { - confirmTemplateSelection(false); + if(!isSearchFocused()) + { + confirmTemplateSelection(); + } }); + + handleKeyUpOrDown(false); } function handleKeyUpOrDown(isUp) -- GitLab