[gnome-shell] keyboard: hide the keyboard when unfocusing a shell entry
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] keyboard: hide the keyboard when unfocusing a shell entry
- Date: Thu, 8 Sep 2011 19:51:05 +0000 (UTC)
commit 092338a4c73fda1f2f3533a3f1ac8a570e8599f8
Author: Dan Winship <danw gnome org>
Date: Thu Sep 8 13:11:39 2011 -0400
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
js/ui/keyboard.js | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index e759a76..46a45b5 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -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 () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]