chore: Open sidebar with ctrl-f

This commit is contained in:
dashie 2023-12-15 17:48:10 +00:00
parent 9d3fc438b0
commit b97da674a8
2 changed files with 5 additions and 1 deletions

View file

@ -38,6 +38,10 @@ impl ReSetWindow {
pub fn setup_shortcuts(&self) {
let search_action = ActionEntry::builder("search")
.activate(move |window: &Self, _, _| {
let imp = window.imp();
if !imp.reset_overlay_split_view.shows_sidebar() {
imp.reset_overlay_split_view.set_show_sidebar(true);
}
window.imp().reset_search_entry.grab_focus();
})
.build();