From b97da674a8e014a631ee831eaaffc7c6bc7ac798 Mon Sep 17 00:00:00 2001 From: dashie Date: Fri, 15 Dec 2023 17:48:10 +0000 Subject: [PATCH] chore: Open sidebar with ctrl-f --- Cargo.toml | 2 +- src/components/window/reset_window.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index eb172fb..7f1bae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/Xetibo/ReSet" license = "GPL-3.0-only" [dependencies] -reset_daemon = "0.6.2" +reset_daemon = "0.6.3" re_set-lib = "0.8.5" adw = { version = "0.5.3", package = "libadwaita", features = ["v1_4"] } dbus = "0.9.7" diff --git a/src/components/window/reset_window.rs b/src/components/window/reset_window.rs index 49c1e8c..f1defcb 100644 --- a/src/components/window/reset_window.rs +++ b/src/components/window/reset_window.rs @@ -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();