[polari] ui: Move initial focus to name entry



commit 6e5543fdbeed7d00b490df6878762d5e221b446c
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Aug 20 11:56:05 2014 +0200

    ui: Move initial focus to name entry
    
    Since we no longer select a "random" account when opening the
    join/message dialogs, there's a higher chance that we already
    selected the correct account and the user can just enter the
    name and confirm - to make this easier, put the initial focus
    on the name entry.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=711833

 src/joinDialog.js    |    2 ++
 src/messageDialog.js |    2 ++
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/joinDialog.js b/src/joinDialog.js
index fca8709..c71bdd1 100644
--- a/src/joinDialog.js
+++ b/src/joinDialog.js
@@ -53,6 +53,8 @@ const JoinDialog = new Lang.Class({
 
         this._updateConnectionCombo();
         this._updateCanConfirm();
+
+        this._nameEntry.grab_focus();
     },
 
     _createWidget: function() {
diff --git a/src/messageDialog.js b/src/messageDialog.js
index f3aa9dd..d2fc9c2 100644
--- a/src/messageDialog.js
+++ b/src/messageDialog.js
@@ -41,6 +41,8 @@ const MessageDialog = new Lang.Class({
 
         this._updateCanConfirm();
         this._updateRecentList([]);
+
+        this._nameEntry.grab_focus();
     },
 
     _createWidget: function() {


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