aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJörn Zaefferer <joern.zaefferer@gmail.com>2011-05-07 16:23:31 +0200
committerJörn Zaefferer <joern.zaefferer@gmail.com>2011-05-07 16:23:31 +0200
commit24c0d9195a3ae84bf6fe4698926fafafa55b2bdf (patch)
tree1970b62e5057dbd14ec05961f4e7f3c1c29d6e50 /ui
parentcd92ad09f55d53dd9dd406a48a5c9c8a09126d68 (diff)
downloadjquery-ui-24c0d9195a3ae84bf6fe4698926fafafa55b2bdf.tar.gz
jquery-ui-24c0d9195a3ae84bf6fe4698926fafafa55b2bdf.zip
Popup: Fix keyboard handling to prevent scrolling on keydown
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.popup.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.popup.js b/ui/jquery.ui.popup.js
index 784e5c655..10361a35c 100644
--- a/ui/jquery.ui.popup.js
+++ b/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 );
}
},