recent_topics: Allow focus back to table from search using esc.

User can now use `escape` key to switch focus from search to
table without using arrow keys to do so.
This commit is contained in:
Aman Agrawal
2021-01-04 11:02:59 +00:00
committed by Tim Abbott
parent e887428dec
commit 017fbe3fe4
2 changed files with 4 additions and 0 deletions

View File

@@ -572,6 +572,9 @@ exports.change_focused_element = function (e, input_key) {
// on rerender when user is typing.
current_focus_elem = $("#recent_topics_search");
return true;
case "escape":
set_table_focus(row_focus, col_focus);
return true;
}
} else if ($elem.hasClass("btn-recent-filters")) {
switch (input_key) {