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.

popovers: Refactor keyboard handling for the topic_menu popover.

palashb01dbd945eb96af
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index e4716648d5e..c16ebf71ed2 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -392,11 +392,6 @@ function handle_popover_events(event_name) {
return true;
}
- if (stream_popover.topic_popped()) {
- stream_popover.topic_sidebar_menu_handle_keyboard(event_name);
- return true;
- }
-
return false;
}
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.js
index 4c1dd81cb51..126e96ed07e 100644
--- a/web/src/stream_popover.js
+++ b/web/src/stream_popover.js
@@ -59,11 +59,6 @@ export function stream_sidebar_menu_handle_keyboard(key) {
popovers.popover_items_handle_keyboard(key, items);
}
-export function topic_sidebar_menu_handle_keyboard(key) {
- const items = get_popover_menu_items(current_topic_sidebar_elem);
- popovers.popover_items_handle_keyboard(key, items);
-}
-
export function elem_to_stream_id($elem) {
const stream_id = Number.parseInt($elem.attr("data-stream-id"), 10);