mirror of
https://github.com/prymitive/karma
synced 2026-05-19 04:26:41 +00:00
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:
@@ -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
Reference in New Issue
Block a user