keyboard: hide the keyboard when unfocusing a shell entry

Previously we explicitly didn't do this, although I can't figure out
why now... definitely seems to work more smoothly this way.

https://bugzilla.gnome.org/show_bug.cgi?id=658591
This commit is contained in:
Dan Winship 2011-09-08 13:11:39 -04:00
parent 7907b19e28
commit 092338a4c7

View File

@ -265,15 +265,14 @@ Keyboard.prototype = {
_onKeyFocusChanged: function () {
let focus = global.stage.key_focus;
if (focus == global.stage || focus == null)
// Showing an extended key popup will grab focus, but ignore that
if (focus && focus._extended_keys)
return;
if (focus instanceof Clutter.Text)
this.show();
else {
if (focus._extended_keys == null)
this.hide();
}
else
this.hide();
},
_addKeys: function () {