aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2019-11-19 17:01:48 +0100
committerfiaxh <git@lightrise.org>2019-11-19 17:01:48 +0100
commite6918b35b382c3365b220582a32c97ec25037cc8 (patch)
treefbf0ce9813e1579bf47106e0c15222e3fdb3f981 /main/src/ui
parentb02ee171c1713b56e2d6db7721488b64c238b478 (diff)
downloaddino-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/ui')
-rw-r--r--main/src/ui/unified_window_controller.vala3
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) => {