From e6918b35b382c3365b220582a32c97ec25037cc8 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 19 Nov 2019 17:01:48 +0100 Subject: Don't select all text in entry of message search when opening fixes #601 --- main/src/ui/unified_window_controller.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'main/src') diff --git a/main/src/ui/unified_window_controller.vala b/main/src/ui/unified_window_controller.vala index 6ac941cc..157bbdff 100644 --- a/main/src/ui/unified_window_controller.vala +++ b/main/src/ui/unified_window_controller.vala @@ -68,7 +68,8 @@ public class UnifiedWindowController : Object { if (window.conversation_frame.conversation != null && window.search_box.search_entry.text == "") { reset_search_entry(); } - window.search_box.search_entry.grab_focus(); + window.search_box.search_entry.grab_focus_without_selecting(); + window.search_box.search_entry.set_position((int)window.search_box.search_entry.text_length); } }); window.search_box.selected_item.connect((item) => { -- cgit v1.2.3-70-g09d2