diff --git a/tests/visual/menu/popup.js b/tests/visual/menu/popup.js index 503bb93b7..a29904877 100644 --- a/tests/visual/menu/popup.js +++ b/tests/visual/menu/popup.js @@ -37,6 +37,12 @@ $.widget( "ui.popup", { this.close(); this._bind(this.options.trigger, { + keydown: function( event ) { + // prevent space-to-open to scroll the page + if (event.keyCode == $.ui.keyCode.SPACE) { + event.preventDefault() + } + }, click: function( event ) { event.preventDefault(); if (this.open) {