From 1771750d3d87ec18adc8fd1aaabc34bf85dd88c3 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 18 Apr 2014 10:57:43 +0200 Subject: [PATCH] Submit pagination dialog with ENTER --- wcfsetup/install/files/js/WCF.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 856209b91b..735b904b93 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -7029,8 +7029,15 @@ WCF.System.PageNavigation = { /** * Validates the page No input. + * + * @param Event event */ - _keyUp: function() { + _keyUp: function(event) { + if (event.which == $.ui.keyCode.ENTER && !this._button.prop('disabled')) { + this._submit(); + return; + } + var $pageNo = parseInt(this._pageNo.val()) || 0; if ($pageNo < 1 || $pageNo > this._pageNo.attr('max')) { this._button.disable(); -- 2.20.1