[polari/wip/fmuellner/design-review: 10/15] joinDialog: Is this how keyboard activation of networks should work?



commit ded7bdbcabb511624ba7fa89aad173ebfd7e588e
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 25 15:44:23 2016 +0100

    joinDialog: Is this how keyboard activation of networks should work?

 data/resources/join-room-dialog.ui |    1 +
 src/joinDialog.js                  |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/data/resources/join-room-dialog.ui b/data/resources/join-room-dialog.ui
index 950c81e..b3c725a 100644
--- a/data/resources/join-room-dialog.ui
+++ b/data/resources/join-room-dialog.ui
@@ -192,6 +192,7 @@
                             <child>
                               <object class="GtkSearchEntry" id="filterEntry">
                                 <property name="visible">True</property>
+                                <property name="activates-default">True</property>
                                 <property name="hexpand">True</property>
                                 <property name="margin">60</property>
                                 <property name="margin-top">6</property>
diff --git a/src/joinDialog.js b/src/joinDialog.js
index 0b5cc44..068baaa 100644
--- a/src/joinDialog.js
+++ b/src/joinDialog.js
@@ -155,7 +155,7 @@ const JoinDialog = new Lang.Class({
                 else
                     this.response(Gtk.ResponseType.CANCEL);
             }));
-        this._filterEntry.connect('activate', Lang.bind(this,
+        this._filterEntry.connect_after('activate', Lang.bind(this,
             function() {
                 if (this._filterEntry.text.length > 0)
                     this._connectionsList.activateFirst();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]