[gnome-documents] searchbar: Don't select when focusing the search entry
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] searchbar: Don't select when focusing the search entry
- Date: Tue, 31 May 2016 13:01:17 +0000 (UTC)
commit fa3dcf937026cc3249f653b01c76e3bc820f5a93
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 6c763ea..2cc0f13 100644
--- a/src/searchbar.js
+++ b/src/searchbar.js
@@ -101,7 +101,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]