mirror of https://github.com/zulip/zulip.git
hotkeys refactor: Flip conditional related to popovers.
When checking for hotkeys related to popovers, we avoid making the external call for keys that won't be important for popovers. This mostly helps testing.
This commit is contained in:
parent
b1ef7b2e53
commit
1df2dfc6e0
|
@ -164,7 +164,7 @@ exports.process_hotkey = function (e) {
|
|||
}
|
||||
}
|
||||
|
||||
if (popovers.actions_popped() && actions_dropdown_hotkeys.indexOf(event_name) !== -1) {
|
||||
if ((actions_dropdown_hotkeys.indexOf(event_name) !== -1) && popovers.actions_popped()) {
|
||||
popovers.actions_menu_handle_keyboard(event_name);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue