mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Popup: Fix keyboard handling to prevent scrolling on keydown
This commit is contained in:
parent
cd92ad09f5
commit
24c0d9195a
2
ui/jquery.ui.popup.js
vendored
2
ui/jquery.ui.popup.js
vendored
@ -60,6 +60,8 @@ $.widget( "ui.popup", {
|
||||
// translate keydown to click
|
||||
// opens popup and let's tooltip hide itself
|
||||
if ( event.keyCode == $.ui.keyCode.DOWN ) {
|
||||
// prevent scrolling
|
||||
event.preventDefault();
|
||||
this.options.trigger.trigger( "click", event );
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user