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.

overlays: Trap Tab focus in the reminders overlay.

Pritesh Shetty7c90102fa893
diff --git a/web/src/overlays.ts b/web/src/overlays.ts
index d8d16315f88..0d8dd294cc1 100644
--- a/web/src/overlays.ts
+++ b/web/src/overlays.ts
@@ -325,7 +325,7 @@ export function trap_focus_for_settings_overlay(): void {
}
});
- const overlay_focus_trap_selector = "#draft_overlay";
+ const overlay_focus_trap_selector = "#draft_overlay, #reminders-overlay";
$("body").on("keydown", overlay_focus_trap_selector, function (this: HTMLElement, e) {
if (e.key !== "Tab") {
return;
diff --git a/web/templates/reminders_overlay.hbs b/web/templates/reminders_overlay.hbs
index 980089971e3..a7e12769cb9 100644
--- a/web/templates/reminders_overlay.hbs
+++ b/web/templates/reminders_overlay.hbs
@@ -1,4 +1,4 @@
-<div id="reminders-overlay" class="overlay" data-overlay="reminders">
+<div id="reminders-overlay" class="overlay" data-overlay="reminders" tabindex="-1">
<div class="flex overlay-content">
<div class="overlay-messages-container overlay-container reminders-container">
<div class="overlay-messages-header">