[gnome-shell] screenShield: focus login screen after lifting shield
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenShield: focus login screen after lifting shield
- Date: Tue, 7 Oct 2014 14:56:01 +0000 (UTC)
commit 1d374ac8bd496f6fa6f4c55ffd207bd30bd50075
Author: Ray Strode <rstrode redhat com>
Date: Mon Oct 6 16:38:03 2014 -0400
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
js/ui/screenShield.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 6c1bc5e..1c1dca6 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]