mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-01 07:57:44 +02:00
chore: Open sidebar with ctrl-f
This commit is contained in:
parent
9d3fc438b0
commit
b97da674a8
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue