From d5d863d9986b2fde2cf780a8dfdfed7e7caaa02e Mon Sep 17 00:00:00 2001 From: tophf Date: Fri, 22 Dec 2017 10:53:22 +0300 Subject: [PATCH] disable incremental search when #message-box is shown fixes #313 --- manage/incremental-search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manage/incremental-search.js b/manage/incremental-search.js index 9976e187..7f0451fa 100644 --- a/manage/incremental-search.js +++ b/manage/incremental-search.js @@ -73,7 +73,8 @@ onDOMready().then(() => { function maybeRefocus(event) { if (event.altKey || event.ctrlKey || event.metaKey || - event.target.matches('[type="text"], [type="search"]')) { + event.target.matches('[type="text"], [type="search"], [type="number"]') || + $('#message-box')) { return; } const {which: k, key} = event;