mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
This commit is contained in:
parent
31774a7711
commit
a87e0f028a
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue