disable incremental search when #message-box is shown

fixes #313
This commit is contained in:
tophf 2017-12-22 10:53:22 +03:00
parent 4946aad684
commit d5d863d998

View File

@ -73,7 +73,8 @@ onDOMready().then(() => {
function maybeRefocus(event) { function maybeRefocus(event) {
if (event.altKey || event.ctrlKey || event.metaKey || 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; return;
} }
const {which: k, key} = event; const {which: k, key} = event;