[gnome-shell/wip/sass] screenShield: focus login screen after lifting shield



commit 2d3bf71d0fb7374a11ce2e6f0ebb4a6582c80e3d
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]