From 2e693816ae3e4976a6bb15e5b23f3422b936f000 Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Fri, 19 Nov 2021 14:24:28 +0100 Subject: #385: Do not focus search field if current element has value --- assets/search.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/search.js b/assets/search.js index 33a8a5e..2d75fee 100644 --- a/assets/search.js +++ b/assets/search.js @@ -30,6 +30,10 @@ * @param {Event} event */ function focusSearchFieldOnKeyPress(event) { + if (event.target.value !== undefined) { + return; + } + if (input === document.activeElement) { return; } -- cgit v1.2.3