Skip to content

Commit

Permalink
Focus password after keyboard navigation (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjr authored and cassidyjames committed Jul 18, 2019
1 parent 851f43a commit 6717a17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MainWindow.vala
Expand Up @@ -227,12 +227,14 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow {
} else {
activate_action ("previous", null);
}
return true;
} else if (event.keyval == Gdk.Key.Right) {
if (get_style_context ().direction == Gtk.TextDirection.RTL) {
activate_action ("previous", null);
} else {
activate_action ("next", null);
}
return true;
}
}
}
Expand Down Expand Up @@ -529,6 +531,7 @@ public class Greeter.MainWindow : Gtk.ApplicationWindow {
distance = (next_delta - index_delta) * natural_width;
user_card.notify["reveal-ratio"].connect (notify_cb);
user_card.show_input = true;
user_card.grab_focus ();
if (index_delta != next_delta) {
((Greeter.UserCard) user_cards.peek_nth (index_delta)).show_input = false;
}
Expand Down

0 comments on commit 6717a17

Please sign in to comment.