hashchange: Extract func which checks current hash is in RT.

This commit is contained in:
Aman Agrawal
2021-02-17 12:32:58 +00:00
committed by Tim Abbott
parent a210ee2b7d
commit f4f37fca14
3 changed files with 8 additions and 2 deletions

View File

@@ -480,7 +480,7 @@ exports.process_hotkey = function (e, hotkey) {
case "open_recent_topics":
case "escape":
if (
["#recent_topics", "#", ""].includes(window.location.hash) &&
hashchange.in_recent_topics_hash() &&
!popovers.any_active() &&
!overlays.is_active() &&
!$("#searchbox_form #search_query").is(":focus") &&