[gnome-shell] screenShield: Forward key presses to tne entry when raising the shield
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] screenShield: Forward key presses to tne entry when raising the shield
- Date: Mon, 11 Mar 2013 19:08:48 +0000 (UTC)
commit 209014b083dbe86ed0e0860a6016735571b56f94
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Mar 5 00:55:54 2013 -0500
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 deletions(-)
---
diff --git a/js/gdm/loginDialog.js b/js/gdm/loginDialog.js
index e9cb99f..373ddb5 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 ada1024..25fa4cc 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 07cbe4f..2982532 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);
+ },
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]