Skip to content

Commit c37804c

Browse files
committed
Error improvements
1 parent f6943c1 commit c37804c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/jquery.tagsinput-revisited.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -305,11 +305,10 @@
305305

306306
// Removes the error class when user changes the value of the fake input
307307
$(data.fake_input).keydown(function(event) {
308-
console.log('?');
309-
// alt, shift, esc, ctrl and arrows keys are not taken into consideration
310-
// if (!$.inArray(event.keyCode, [37, 38, 39, 40, 27, 16, 17, 225])) {
308+
// alt, shift, esc, ctrl and arrows keys are ignored
309+
if (jQuery.inArray(event.keyCode, [37, 38, 39, 40, 27, 16, 17, 18, 225]) === -1) {
311310
$(this).removeClass('error');
312-
// }
311+
}
313312
});
314313
});
315314

0 commit comments

Comments
 (0)