[gnome-shell] screenShield: Recognise all Enter keys as Return
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenShield: Recognise all Enter keys as Return
- Date: Fri, 7 Nov 2014 09:15:30 +0000 (UTC)
commit 568454abb891c3750bb60945b1aad2f417810052
Author: Christian Persch <chpe gnome org>
Date: Tue Jul 16 18:40:50 2013 +0200
screenShield: Recognise all Enter keys as Return
Bug #704339.
js/ui/screenShield.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index 5541215..485e0ef 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]