diff --git a/view/js/acl.js b/view/js/acl.js index d01ffe7cb..b50dbaec8 100644 --- a/view/js/acl.js +++ b/view/js/acl.js @@ -109,7 +109,14 @@ ACL.prototype.search = function(){ ACL.prototype.on_search = function(event){ if (this.kp_timer) clearTimeout(this.kp_timer); - this.kp_timer = setTimeout( this.search.bind(this), 1000); + + // Triggers an immediate search while preventing form submission + if (event.key === 'Enter') { + this.search(); + event.preventDefault(); + } else { + this.kp_timer = setTimeout( this.search.bind(this), 500); + } }; ACL.prototype.on_showall = function(event){ diff --git a/view/templates/acl_selector.tpl b/view/templates/acl_selector.tpl index 6755f2a19..da86a478b 100644 --- a/view/templates/acl_selector.tpl +++ b/view/templates/acl_selector.tpl @@ -1,6 +1,6 @@