hotkey: Rename open_recent_topics.

This commit is contained in:
evykassirer 2023-09-06 14:54:45 -07:00 committed by Tim Abbott
parent 37d6f319e3
commit 92163ad207
2 changed files with 5 additions and 5 deletions

View File

@ -163,7 +163,7 @@ const keypress_mappings = {
113: {name: "query_streams", message_view_only: true}, // 'q' 113: {name: "query_streams", message_view_only: true}, // 'q'
114: {name: "reply_message", message_view_only: true}, // 'r' 114: {name: "reply_message", message_view_only: true}, // 'r'
115: {name: "toggle_conversation_view", message_view_only: true}, // 's' 115: {name: "toggle_conversation_view", message_view_only: true}, // 's'
116: {name: "open_recent_topics", message_view_only: true}, // 't' 116: {name: "open_recent_view", message_view_only: true}, // 't'
117: {name: "show_sender_info", message_view_only: true}, // 'u' 117: {name: "show_sender_info", message_view_only: true}, // 'u'
118: {name: "show_lightbox", message_view_only: true}, // 'v' 118: {name: "show_lightbox", message_view_only: true}, // 'v'
119: {name: "query_users", message_view_only: true}, // 'w' 119: {name: "query_users", message_view_only: true}, // 'w'
@ -625,7 +625,7 @@ export function process_hotkey(e, hotkey) {
case "vim_right": case "vim_right":
case "tab": case "tab":
case "shift_tab": case "shift_tab":
case "open_recent_topics": case "open_recent_view":
if (recent_view_ui.is_in_focus()) { if (recent_view_ui.is_in_focus()) {
return recent_view_ui.change_focused_element($(e.target), event_name); return recent_view_ui.change_focused_element($(e.target), event_name);
} }
@ -872,7 +872,7 @@ export function process_hotkey(e, hotkey) {
case "p_key": case "p_key":
narrow.narrow_to_next_pm_string({trigger: "hotkey"}); narrow.narrow_to_next_pm_string({trigger: "hotkey"});
return true; return true;
case "open_recent_topics": case "open_recent_view":
browser_history.go_to_location("#recent"); browser_history.go_to_location("#recent");
return true; return true;
case "all_messages": case "all_messages":

View File

@ -1117,7 +1117,7 @@ export function change_focused_element($elt, input_key) {
case "vim_right": case "vim_right":
case "vim_down": case "vim_down":
case "vim_up": case "vim_up":
case "open_recent_topics": case "open_recent_view":
return false; return false;
case "shift_tab": case "shift_tab":
$current_focus_elem = filter_buttons().last(); $current_focus_elem = filter_buttons().last();
@ -1203,7 +1203,7 @@ export function change_focused_element($elt, input_key) {
switch (input_key) { switch (input_key) {
case "escape": case "escape":
return false; return false;
case "open_recent_topics": case "open_recent_view":
set_default_focus(); set_default_focus();
return true; return true;
case "shift_tab": case "shift_tab":