recent_topics: Make it the default view.

Go to Recent Topics on "#", no hash and "#recent_topics".
Go to Recent Topics as the last destination for escape key.
Map `a` key to All messages and change its hash to
`#all_messages`.
This commit is contained in:
Aman Agrawal
2020-09-20 13:44:24 +05:30
committed by Tim Abbott
parent dda36d1c93
commit 39d123e355
23 changed files with 56 additions and 38 deletions

View File

@@ -503,13 +503,6 @@ exports.change_focused_element = function (e, input_key) {
// handle the key.
const $elem = $(e.target);
if ($("#recent_topics_table").find(":focus").length === 0) {
// This is a failsafe to return focus back to recent topics overlay,
// in case it loses focus due to some unknown reason.
set_default_focus();
return false;
}
if (e.target.id === "recent_topics_search") {
// Since the search box a text area, we want the browser to handle
// Left/Right and selection within the widget; but if the user