From 5a2cb79502212773b7c0c68d83c7367f5e6d607f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 6 Dec 2020 22:48:54 +0100 Subject: [PATCH] Only close the user panel drop-downs if no key modifier was pressed --- wcfsetup/install/files/js/WCF.User.js | 5 +++++ 1 file changed, 5 insertions(+) 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))); -- 2.20.1