From: Matthias Schmidt Date: Fri, 18 Apr 2014 08:57:43 +0000 (+0200) Subject: Submit pagination dialog with ENTER X-Git-Tag: 2.1.0_Alpha_1~884 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1771750d3d87ec18adc8fd1aaabc34bf85dd88c3;p=GitHub%2FWoltLab%2FWCF.git Submit pagination dialog with ENTER --- 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();