Skip to content

Commit

Permalink
Search entry grabs focus
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Mar 21, 2024
1 parent 15c7297 commit 1ade379
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Widgets/Sidebar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ public class Widgets.Sidebar : Gtk.Box {

search_toggle.bind_property ("active", search_revealer, "reveal-child");

search_revealer.notify["child-revealed"].connect (() => {
if (search_revealer.child_revealed) {
search_entry.grab_focus ();
}
});

NotificationsPlug.notify_settings.bind (
"do-not-disturb",
do_not_disturb_switch,
Expand Down

0 comments on commit 1ade379

Please sign in to comment.