mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user