projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62733ac
)
Only close the user panel drop-downs if no key modifier was pressed
author
Alexander Ebert
<ebert@woltlab.com>
Sun, 6 Dec 2020 21:48:54 +0000
(22:48 +0100)
committer
Alexander Ebert
<ebert@woltlab.com>
Sun, 6 Dec 2020 21:48:54 +0000
(22:48 +0100)
wcfsetup/install/files/js/WCF.User.js
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/js/WCF.User.js
b/wcfsetup/install/files/js/WCF.User.js
index c11f7726990981a6b990a08cec9ade673a363a77..2773f65f773556289d10e22f29a275cd75d89031 100644
(file)
--- 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)));