Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
views_util: Fix keyboard navigation not working when compose is open.
Aman Agrawal25fb8faf4547
diff --git a/web/src/views_util.ts b/web/src/views_util.tsindex 3e0b560910e..977fa5ecee1 100644--- a/web/src/views_util.ts+++ b/web/src/views_util.ts@@ -154,6 +154,16 @@ export function hide(opts: {$view: JQuery; set_visible: (value: boolean) => voidexport 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.