screenShield: focus login screen after lifting shield

This commit ensures the login screen gets focused after
the screen shield is raised.

The code affects the unlock screen as well, but it's
less important since the unlock screen gets destroyed
and recreated each time the curtain moves, so it
has an opportunity to take focus on its own.

https://bugzilla.gnome.org/show_bug.cgi?id=708105
This commit is contained in:
Ray Strode 2014-10-06 16:38:03 -04:00
parent 83f0f4ea36
commit 1d374ac8bd

View File

@ -919,6 +919,9 @@ const ScreenShield = new Lang.Class({
this._lockScreenState = MessageTray.State.HIDDEN;
this._lockScreenGroup.hide();
this._dialog.actor.grab_key_focus();
this._dialog.actor.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
},
_hideLockScreen: function(animate, velocity) {