mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
Clarify line in hotkey.js per trac #253
(imported from commit d5bacdd4cef2f62ba22e3a47d25c3a656cf601c0)
This commit is contained in:
parent
bbb70b496b
commit
8bcbe55238
@ -72,11 +72,13 @@ function process_hotkey(code) {
|
||||
}
|
||||
|
||||
if (num_pressed_keys() > 1 &&
|
||||
// "shift" "caps lock"
|
||||
!((pressed_keys[16] === true || pressed_keys[20]) &&
|
||||
// "shift" "caps lock"
|
||||
!((pressed_keys[16] || pressed_keys[20]) &&
|
||||
num_pressed_keys() === 2)) {
|
||||
// If you are already holding down another key, none of these
|
||||
// actions apply.
|
||||
// actions apply. However, if you are holding down exactly one
|
||||
// other key and that key is shift or caps lock, we still want
|
||||
// to continue processing.
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user