From 24c0d9195a3ae84bf6fe4698926fafafa55b2bdf Mon Sep 17 00:00:00 2001 From: Jörn Zaefferer Date: Sat, 7 May 2011 16:23:31 +0200 Subject: Popup: Fix keyboard handling to prevent scrolling on keydown --- ui/jquery.ui.popup.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui') 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 ); } }, -- cgit v1.2.3