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:
parent
7907b19e28
commit
092338a4c7
@ -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)
|
||||
else
|
||||
this.hide();
|
||||
}
|
||||
},
|
||||
|
||||
_addKeys: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user