Commit b529c78a authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Search: focus the entry on typing

parent 8314868a
......@@ -55,8 +55,8 @@ impl Window {
entry.set_text("");
});
let search_entry = self.search_entry.clone();
self.widget.connect_key_press_event(move |_, event| {
search_entry.handle_event(event);
self.widget.connect_key_press_event(move |_, _| {
search_entry.grab_focus_without_selecting();
gtk::Inhibit(false)
});
self.widget.show_all();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment