diff options
author | fiaxh <git@lightrise.org> | 2019-11-19 17:01:48 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-11-19 17:01:48 +0100 |
commit | e6918b35b382c3365b220582a32c97ec25037cc8 (patch) | |
tree | fbf0ce9813e1579bf47106e0c15222e3fdb3f981 /main/src | |
parent | b02ee171c1713b56e2d6db7721488b64c238b478 (diff) | |
download | dino-e6918b35b382c3365b220582a32c97ec25037cc8.tar.gz dino-e6918b35b382c3365b220582a32c97ec25037cc8.zip |
Don't select all text in entry of message search when opening
fixes #601
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/unified_window_controller.vala | 3 |
1 files changed, 2 insertions, 1 deletions
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) => { |