Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

Revert "views_util: Fix keyboard navigation not working when compose is open."

Aman Agrawal81e0305f9146
diff --git a/web/src/views_util.ts b/web/src/views_util.ts
index c7df43a116e..d760a85740f 100644
--- a/web/src/views_util.ts
+++ b/web/src/views_util.ts
@@ -159,16 +159,6 @@ export function hide(opts: {$view: JQuery; set_visible: (value: boolean) => void
export function is_in_focus(): boolean {
let can_current_view_steal_focus = true;
const focused_element = document.activeElement;
-
- // If current view has focus we don't need to check anything else.
- if (
- focused_element instanceof HTMLElement &&
- (focused_element.closest("#recent_view") !== null ||
- focused_element.closest("#inbox-view") !== null)
- ) {
- return true;
- }
-
if (
focused_element instanceof HTMLElement &&
// Pill input elements.