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:
Steve Howell 2017-03-03 09:32:16 -08:00 committed by showell
parent bd6107cc1d
commit a6e1ab4fec
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}