mirror of https://github.com/zulip/zulip.git
hotkeys: Limit calls to ui.home_tab_obscured().
If you are typing a key like "q" in the compose box, there is no need to check if the home tab is obscured, because the effect of "q" is not limited by the message pane being opened.
This commit is contained in:
parent
bd6107cc1d
commit
a6e1ab4fec
|
@ -131,7 +131,7 @@ function process_hotkey(e) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (ui.home_tab_obscured() && hotkey.message_view_only) {
|
||||
if (hotkey.message_view_only && ui.home_tab_obscured()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue