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:
Steve Howell 2017-03-11 15:44:03 -08:00 committed by Tim Abbott
parent b1ef7b2e53
commit 1df2dfc6e0
1 changed files with 1 additions and 1 deletions

View File

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