Popup: Fix keyboard handling to prevent scrolling on keydown

This commit is contained in:
Jörn Zaefferer 2011-05-07 16:23:31 +02:00
parent cd92ad09f5
commit 24c0d9195a

View File

@ -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 );
}
},