screenShield: Forward key presses to tne entry when raising the shield

https://bugzilla.gnome.org/show_bug.cgi?id=686740
This commit is contained in:
Jasper St. Pierre 2013-03-05 00:55:54 -05:00
parent 127f10e7a8
commit 209014b083
3 changed files with 13 additions and 1 deletions

View File

@ -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);
},
});

View File

@ -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;
},

View File

@ -300,4 +300,8 @@ const UnlockDialog = new Lang.Class({
this.destroy();
},
addCharacter: function(unichar) {
this._promptEntry.clutter_text.insert_unichar(unichar);
},
});