[dconf-editor] Give focus back to search entry.
- From: Arnaud B. <arnaudb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf-editor] Give focus back to search entry.
- Date: Thu, 29 Nov 2018 13:27:15 +0000 (UTC)
commit 01245673fedfd03ba073fff34ee4e8a4a9f71059
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date: Thu Nov 29 08:15:14 2018 +0100
Give focus back to search entry.
editor/browser-headerbar.vala | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/editor/browser-headerbar.vala b/editor/browser-headerbar.vala
index 8139274..73985cd 100644
--- a/editor/browser-headerbar.vala
+++ b/editor/browser-headerbar.vala
@@ -210,6 +210,8 @@ private class BrowserHeaderBar : HeaderBar, AdaptativeWidget
if (disable_action_bar)
ltr_right_separator.show ();
info_button.show ();
+ if (path_widget.search_mode_enabled)
+ path_widget.entry_grab_focus_without_selecting ();
}
/*\
@@ -316,6 +318,8 @@ private class BrowserHeaderBar : HeaderBar, AdaptativeWidget
title_stack.set_visible_child (path_widget);
in_window_modifications = false;
info_button.show ();
+ if (path_widget.search_mode_enabled)
+ path_widget.entry_grab_focus_without_selecting ();
}
internal void set_apply_modifications_button_sensitive (bool new_value)
@@ -366,6 +370,8 @@ private class BrowserHeaderBar : HeaderBar, AdaptativeWidget
bookmarks_stack.set_visible_child (bookmarks_label);
info_button.show ();
update_hamburger_menu ();
+ if (path_widget.search_mode_enabled)
+ path_widget.entry_grab_focus_without_selecting ();
}
internal void edit_in_window_bookmarks ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]