From 209014b083dbe86ed0e0860a6016735571b56f94 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 5 Mar 2013 00:55:54 -0500 Subject: [PATCH] screenShield: Forward key presses to tne entry when raising the shield https://bugzilla.gnome.org/show_bug.cgi?id=686740 --- js/gdm/loginDialog.js | 6 +++++- js/ui/screenShield.js | 4 ++++ js/ui/unlockDialog.js | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js index e9cb99fcf..373ddb5c6 100644 --- a/js/gdm/loginDialog.js +++ b/js/gdm/loginDialog.js @@ -1166,5 +1166,9 @@ const LoginDialog = new Lang.Class({ this.parent(); Main.ctrlAltTabManager.removeGroup(this.dialogLayout); - } + }, + + addCharacter: function(unichar) { + this._promptEntry.clutter_text.insert_unichar(unichar); + }, }); diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index ada1024e6..25fa4ccfb 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -601,6 +601,10 @@ const ScreenShield = new Lang.Class({ return false; this._ensureUnlockDialog(true, true); + + if (GLib.unichar_isgraph(unichar)) + this._dialog.addCharacter(unichar); + this._liftShield(true, 0); return true; }, diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 07cbe4fbc..29825323e 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -300,4 +300,8 @@ const UnlockDialog = new Lang.Class({ this.destroy(); }, + + addCharacter: function(unichar) { + this._promptEntry.clutter_text.insert_unichar(unichar); + }, });