shortcuts: Fixed Keyboard shortcut in Firefox.

In Firefox, other Keyboard shortcuts stop working once the users
presses escape to exit the search bar.

Fix this by explicitly focusing the main panel after we exit search.

Fixes #16394.
This commit is contained in:
Aryan Shridhar
2020-10-21 05:37:48 +05:30
committed by GitHub
parent 85ed6f332a
commit 621bef5958

View File

@@ -150,6 +150,7 @@ exports.exit_search = function () {
// for "searching narrows", we redirect
window.location.href = filter.generate_redirect_url();
}
$(".app").trigger("focus");
};
exports.initialize = function () {