Resume auto-refresh on backspace

Right now if user starts typing & then starts pressing backspace we pause but never resume, because stopping pressing backspace is ignored when resuming.
This commit is contained in:
Łukasz Mierzwa
2017-08-05 22:09:57 -07:00
parent 937f12e5e0
commit 55c722773a
2 changed files with 26 additions and 24 deletions

View File

@@ -118,10 +118,12 @@ function init() {
// stop when user is typing in the filter bar
$(".bootstrap-tagsinput").typing({
start: function(event) {
// ignore backspace & enter
if (event.keyCode != 8 && event.keyCode != 13) unsee.pause();
},
stop: function(event) {
if (event.keyCode != 8 && event.keyCode != 13) unsee.resume();
// ignore enter
if (event.keyCode != 13) unsee.resume();
},
delay: 1000
});

File diff suppressed because one or more lines are too long