hotkey: Rename actions_dropdown_hotkeys to menu_dropdown_hotkeys.

actions_dropdown_hotkeys are also to be used for user profile menu
keyboard navigation, so renaming it to a more generic name.
This commit is contained in:
Shubham Padia
2018-06-12 15:22:00 +05:30
committed by showell
parent 5481dd11bc
commit 655175c9f7

View File

@@ -7,7 +7,8 @@ function do_narrow_action(action) {
return true;
}
var actions_dropdown_hotkeys = [
// For message actions and user profile menu.
var menu_dropdown_hotkeys = [
'down_arrow',
'up_arrow',
'vim_up',
@@ -519,7 +520,7 @@ exports.process_hotkey = function (e, hotkey) {
}
}
if (actions_dropdown_hotkeys.indexOf(event_name) !== -1 && popovers.actions_popped()) {
if (menu_dropdown_hotkeys.indexOf(event_name) !== -1 && popovers.actions_popped()) {
popovers.actions_menu_handle_keyboard(event_name);
return true;
}