[gnome-documents/gnome-3-20] searchbar: Don't select when focusing the search entry
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-20] searchbar: Don't select when focusing the search entry
- Date: Wed, 17 Aug 2016 08:43:59 +0000 (UTC)
commit e9430fd3df4b7298e8ad6b5817f3def0a7a9afa8
Author: Dimitrios Christidis <dchristidis mykolab com>
Date: Wed Mar 30 20:00:37 2016 +0300
searchbar: Don't select when focusing the search entry
When initiating a search by typing text, the contents of the search
entry should not be selected. Otherwise, the first-typed character will
be lost. gtk_entry_grab_focus_without_selecting() allows to do that.
https://bugzilla.gnome.org/show_bug.cgi?id=764384
src/searchbar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/searchbar.js b/src/searchbar.js
index 8584994..bdccec5 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -106,7 +106,7 @@ const Searchbar = new Lang.Class({
let retval = this.handle_event(event);
if (retval == Gdk.EVENT_STOP)
- this._searchEntry.grab_focus();
+ this._searchEntry.grab_focus_without_selecting();
return retval;
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]