diff --git a/static/js/hotkey.js b/static/js/hotkey.js index 236d58c2b5..4d3acdf502 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -477,6 +477,7 @@ exports.process_hotkey = function (e, hotkey) { case "vim_right": case "tab": case "shift_tab": + case "open_recent_topics": if ( ["#recent_topics", "#", ""].includes(window.location.hash) && !popovers.any_active() && diff --git a/static/js/recent_topics.js b/static/js/recent_topics.js index 50a14bbb0d..cdfc4e6974 100644 --- a/static/js/recent_topics.js +++ b/static/js/recent_topics.js @@ -600,6 +600,9 @@ exports.change_focused_element = function (e, input_key) { // wraparound. Going off the top or the bottom takes one // to the navigation at the top (see set_table_focus). switch (input_key) { + case "open_recent_topics": + set_default_focus(); + return true; case "shift_tab": case "vim_left": case "left_arrow": diff --git a/static/templates/recent_topics_table.hbs b/static/templates/recent_topics_table.hbs index e3d4102b08..03382c62c6 100644 --- a/static/templates/recent_topics_table.hbs +++ b/static/templates/recent_topics_table.hbs @@ -3,7 +3,7 @@ {{> recent_topics_filters}}