[gnome-documents] searchbar: Refocus the search entry after changing filters
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] searchbar: Refocus the search entry after changing filters
- Date: Sat, 15 Mar 2014 14:49:08 +0000 (UTC)
commit dadd511ceb8280006513d606925d02b8e1083d6e
Author: Rohit Agarwal <1993rohitagarwal gmail com>
Date: Tue Mar 11 19:03:48 2014 +0530
searchbar: Refocus the search entry after changing filters
http://bugzilla.gnome.org/show_bug.cgi?id=725861
src/searchbar.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index b4fdfbb..e77a908 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -363,6 +363,10 @@ const OverviewSearchbar = new Lang.Class({
tag.set_label(item.name);
this._searchEntry.add_tag(tag);
}
+
+ let eventDevice = Gtk.get_current_event_device();
+ if (eventDevice)
+ Gd.entry_focus_hack(this._searchEntry, eventDevice);
},
_onActiveSourceChanged: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]