Use cmd-9 and cmd-shift-9 to toggle contacts panel focus/visibility

This commit is contained in:
Antonio Scandurra 2022-05-12 12:11:27 +02:00
parent 77b524c83e
commit c7802af88b
4 changed files with 31 additions and 5 deletions

View file

@ -764,6 +764,10 @@ impl SidebarItem for ContactsPanel {
.incoming_contact_requests()
.is_empty()
}
fn contains_focused_view(&self, cx: &AppContext) -> bool {
self.filter_editor.is_focused(cx)
}
}
fn render_icon_button(style: &IconButton, svg_path: &'static str) -> impl Element {