Commit c46db13f authored by David Stutz's avatar David Stutz

Merge pull request #381 from Tyf0x/fix_#377

#377. Allow enter in filter.
parents 108b8332 efd15c1e
......@@ -678,6 +678,11 @@
this.$filter.val(this.query).on('click', function(event) {
event.stopPropagation();
}).on('input keydown', $.proxy(function(event) {
// Cancel enter key default behaviour
if (event.which === 13) {
event.preventDefault();
}
// This is useful to catch "keydown" events after the browser has updated the control.
clearTimeout(this.searchTimeout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment