mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user