popovers: Refactor keyboard handling for the topic_menu popover.

This commit removes the use of a separate keyboard handler for
the topic_menu, as we are already using a common keyboard handler
for all Tippy popovers.
This commit is contained in:
palashb01
2023-03-30 19:47:35 +05:30
committed by Tim Abbott
parent 28f2124feb
commit dbd945eb96
2 changed files with 0 additions and 10 deletions

View File

@@ -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;
}

View File

@@ -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);