From 568454abb891c3750bb60945b1aad2f417810052 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 16 Jul 2013 18:40:50 +0200 Subject: [PATCH] screenShield: Recognise all Enter keys as Return Bug #704339. --- js/ui/screenShield.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 55412155b..485e0ef61 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -670,7 +670,9 @@ const ScreenShield = new Lang.Class({ if (this._lockScreenState != MessageTray.State.SHOWN) return Clutter.EVENT_PROPAGATE; - let isEnter = (symbol == Clutter.KEY_Return || symbol == Clutter.KEY_KP_Enter); + let isEnter = (symbol == Clutter.KEY_Return || + symbol == Clutter.KEY_KP_Enter || + symbol == Clutter.KEY_ISO_Enter); if (!isEnter && !(GLib.unichar_isprint(unichar) || symbol == Clutter.KEY_Escape)) return Clutter.EVENT_PROPAGATE;