From: Alexander Ebert Date: Sun, 6 Dec 2020 21:48:54 +0000 (+0100) Subject: Only close the user panel drop-downs if no key modifier was pressed X-Git-Tag: 5.3.2~56 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5a2cb79502212773b7c0c68d83c7367f5e6d607f;p=GitHub%2FWoltLab%2FWCF.git Only close the user panel drop-downs if no key modifier was pressed --- diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index c11f772699..2773f65f77 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -629,6 +629,11 @@ if (COMPILER_TARGET_DEFAULT) { elBySelAll('.interactiveDropdownItemShadowLink', this._dropdown.getItemList()[0], (function (link) { link.addEventListener('click', (function (event) { + if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) { + // Only close the drop-down if no key modifier was pressed. + return; + } + this._dropdown.close(); }).bind(this)); }.bind(this)));