[gnome-software] auth-dialog: Set focus to PIN entry when PIN required



commit 45884dfe6931cfcf9b3e0e3284d9e24e81dc7d9b
Author: Robert Ancell <robert ancell canonical com>
Date:   Mon Jul 4 11:52:29 2016 +1200

    auth-dialog: Set focus to PIN entry when PIN required

 src/gs-auth-dialog.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-auth-dialog.c b/src/gs-auth-dialog.c
index bc33534..55785a7 100644
--- a/src/gs-auth-dialog.c
+++ b/src/gs-auth-dialog.c
@@ -125,6 +125,7 @@ gs_auth_dialog_authenticate_cb (GObject *source,
                                     GS_PLUGIN_ERROR,
                                     GS_PLUGIN_ERROR_PIN_REQUIRED)) {
                        gtk_stack_set_visible_child_name (GTK_STACK (dialog->stack), "2fa");
+                       gtk_widget_grab_focus (dialog->entry_pin);
                        return;
                }
 


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