mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-12 08:28:32 +02:00
chore: Open sidebar with ctrl-f
This commit is contained in:
parent
9d3fc438b0
commit
b97da674a8
|
@ -7,7 +7,7 @@ repository = "https://github.com/Xetibo/ReSet"
|
||||||
license = "GPL-3.0-only"
|
license = "GPL-3.0-only"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
reset_daemon = "0.6.2"
|
reset_daemon = "0.6.3"
|
||||||
re_set-lib = "0.8.5"
|
re_set-lib = "0.8.5"
|
||||||
adw = { version = "0.5.3", package = "libadwaita", features = ["v1_4"] }
|
adw = { version = "0.5.3", package = "libadwaita", features = ["v1_4"] }
|
||||||
dbus = "0.9.7"
|
dbus = "0.9.7"
|
||||||
|
|
|
@ -38,6 +38,10 @@ impl ReSetWindow {
|
||||||
pub fn setup_shortcuts(&self) {
|
pub fn setup_shortcuts(&self) {
|
||||||
let search_action = ActionEntry::builder("search")
|
let search_action = ActionEntry::builder("search")
|
||||||
.activate(move |window: &Self, _, _| {
|
.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();
|
window.imp().reset_search_entry.grab_focus();
|
||||||
})
|
})
|
||||||
.build();
|
.build();
|
||||||
|
|
Loading…
Reference in a new issue