Skip to content
Permalink
Browse files

Popup: Fix keyboard handling to prevent scrolling on keydown

  • Loading branch information...
jzaefferer committed May 7, 2011
1 parent cd92ad0 commit 24c0d9195a3ae84bf6fe4698926fafafa55b2bdf
Showing with 2 additions and 0 deletions.
  1. +2 −0 ui/jquery.ui.popup.js
@@ -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 );
}
},

0 comments on commit 24c0d91

Please sign in to comment.
You can’t perform that action at this time.