[gnome-shell] screenShield: Also unlock on Return/Enter



commit a87e0f028a2a658685fcbced0583ae46dc487800
Author: Colin Walters <walters verbum org>
Date:   Tue Mar 12 12:57:04 2013 -0400

    screenShield: Also unlock on Return/Enter
    
    Since that's what I always did before, having it ignore those is
    driving me mad.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=686740

 js/ui/screenShield.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 25fa4cc..f2a1cea 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -597,7 +597,8 @@ const ScreenShield = new Lang.Class({
         if (this._lockScreenState != MessageTray.State.SHOWN)
             return false;
 
-        if (!(GLib.unichar_isprint(unichar) || symbol == Clutter.KEY_Escape))
+        let isEnter = (symbol == Clutter.KEY_Return || symbol == Clutter.KEY_KP_Enter);
+        if (!isEnter && !(GLib.unichar_isprint(unichar) || symbol == Clutter.KEY_Escape))
             return false;
 
         this._ensureUnlockDialog(true, true);


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