Commit 69959471 authored by Michael Gratton's avatar Michael Gratton 🤞 Committed by Michael Gratton

Ensure conversation find entry focused when visble and shortcut invoked

parent 6be12937
......@@ -2273,7 +2273,7 @@ public class GearyController : Geary.BaseObject {
}
private void on_find_in_conversation_action(SimpleAction action) {
this.main_window.conversation_viewer.conversation_find_bar.set_search_mode(true);
this.main_window.conversation_viewer.enable_find();
}
private void on_search_activated(SimpleAction action) {
......
......@@ -220,6 +220,12 @@ public class ConversationViewer : Gtk.Stack, Geary.BaseInterface {
set_visible_child(this.empty_search_page);
}
/** Shows and focuses the find entry. */
public void enable_find() {
this.conversation_find_bar.set_search_mode(true);
this.conversation_find_entry.grab_focus();
}
/**
* Shows a conversation in the viewer.
*/
......
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