mirror of
https://github.com/danpros/htmly.git
synced 2026-04-21 04:56:23 +05:30
remove using jquery ui for keycode
This commit is contained in:
parent
d6874dcc82
commit
b21e786e77
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ $( function() {
|
|||
$( "#pTag" )
|
||||
// don't navigate away from the field on tab when selecting an item
|
||||
.on( "keydown", function( event ) {
|
||||
if ( event.keyCode === $.ui.keyCode.TAB &&
|
||||
if ( event.keyCode === 9 && // 9 = tab
|
||||
$( this ).autocomplete( "instance" ).menu.active ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ $( function() {
|
|||
$( "#pTag" )
|
||||
// don't navigate away from the field on tab when selecting an item
|
||||
.on( "keydown", function( event ) {
|
||||
if ( event.keyCode === $.ui.keyCode.TAB &&
|
||||
if ( event.keyCode === 9 && // 9 = tab
|
||||
$( this ).autocomplete( "instance" ).menu.active ) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue