You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gives me the bug that I cannot use Enter to select the raw unhighlighted input.
// A select key has been pressedelseif($.inArray(event.keyCode,options.selectKeys)>=0&&!event.shiftKey&&!event.ctrlKey&&!event.altKey&&!event.metaKey){select();returnevent.keyCode==9;// Never cancel tab}
If I change the return keyCode to 13 or just comment the return line away it works the way I expect it too.
/** edit **/
After working on it a bit this is the solution i came up with, can probably be done alot better, but it seems to work.
// A select key has been pressedelseif($.inArray(event.keyCode,options.selectKeys)>=0&&!event.shiftKey&&!event.ctrlKey&&!event.altKey&&!event.metaKey){// With autoHighlight off and only Enter key as selectvalue this gives us a bug// This if -> else fixes it.if(index==-1&&(event.keyCode).inArray(options.selectKeys)){select();}else{select();returnevent.keyCode==9;// Never cancel tab}}
The text was updated successfully, but these errors were encountered:
Using autocomplete with
gives me the bug that I cannot use Enter to select the raw unhighlighted input.
If I change the return keyCode to 13 or just comment the return line away it works the way I expect it too.
/** edit **/
After working on it a bit this is the solution i came up with, can probably be done alot better, but it seems to work.
The text was updated successfully, but these errors were encountered: