From: Alexander Ebert Date: Sun, 19 Jan 2020 18:12:56 +0000 (+0100) Subject: The space key should not collapse drop-downs attached to `` X-Git-Tag: 5.2.2~46 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2e4b2a66b59d232c0ce70f2a723ab4b147ffaf2d;p=GitHub%2FWoltLab%2FWCF.git The space key should not collapse drop-downs attached to `` --- diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js index 660cb68db0..5f5594d7ee 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js @@ -549,7 +549,7 @@ define( }, _handleKeyDown: function(event) { - if (EventKey.Enter(event) || EventKey.Space(event)) { + if (EventKey.Enter(event) || (EventKey.Space(event) && event.currentTarget.nodeName !== 'INPUT')) { event.preventDefault(); this._toggle(event); }