ScreenShield: Make Return key dismiss screenshield
A couple of people have walked up to me and asked how to get to the unlock screen from the screen shield. This was partly addressed by bug 682285, but all three people who asked me about this said they tried the return key and were surprised when it didn't work. It sort of makes sense, since the user is "enter"ing the computer or "return"ing to it. This commit makes enter work in addition to the existing escape key. https://bugzilla.gnome.org/show_bug.cgi?id=683889
This commit is contained in:
parent
3b293e91e3
commit
4254fa3d38
@ -434,7 +434,11 @@ const ScreenShield = new Lang.Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
_onLockScreenKeyRelease: function(actor, event) {
|
_onLockScreenKeyRelease: function(actor, event) {
|
||||||
if (event.get_key_symbol() == Clutter.KEY_Escape) {
|
let symbol = event.get_key_symbol();
|
||||||
|
|
||||||
|
if (symbol == Clutter.KEY_Escape ||
|
||||||
|
symbol == Clutter.KEY_Return ||
|
||||||
|
symbol == Clutter.KEY_KP_Enter) {
|
||||||
this._ensureUnlockDialog();
|
this._ensureUnlockDialog();
|
||||||
this._hideLockScreen(true);
|
this._hideLockScreen(true);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user