mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-19 06:46:49 +01:00
* Allow to press the "enter" key to perform a text search
This commit is contained in:
@@ -117,9 +117,13 @@ function mkChosen(options) {
|
||||
function accSearch(continous, event) {
|
||||
var lenTxtSearch = $('#txtSearch').val().length;
|
||||
|
||||
if ( typeof (event) != 'undefined' && (event.keyCode < 48 || (event.keyCode > 105 && event.keyCode < 123)) ) return;
|
||||
if ( typeof (event) != 'undefined'
|
||||
&& ((event.keyCode < 48 && event.keyCode != 13) || (event.keyCode > 105 && event.keyCode < 123)) ) return;
|
||||
|
||||
if (lenTxtSearch < 3 && continous === 1 && lenTxtSearch > window.lastlen) return;
|
||||
if (lenTxtSearch < 3
|
||||
&& continous === 1
|
||||
&& lenTxtSearch > window.lastlen
|
||||
&& event.keyCode != 13) return;
|
||||
|
||||
window.lastlen = lenTxtSearch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user