aboutsummaryrefslogtreecommitdiff
path: root/extension.js
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-03-18 22:38:20 +0100
committerGuido Günther <agx@sigxcpu.org>2012-03-18 22:38:20 +0100
commit3fa144fc06a467d642b29c341ba67ed41cf0b92d (patch)
treee23dd2c06e762bcca990898a0364fc03be894e8e /extension.js
parent3837b6d679fe8478efcb75e0da7480e15b9a5127 (diff)
Revert "Toggle keyboard by visibility"
This reverts commit 2583e8a90cf50199e6cb74e0d9181ab7c0940b7b. Needed until BZ#671340 is fixed.
Diffstat (limited to 'extension.js')
-rw-r--r--extension.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/extension.js b/extension.js
index d54c39f..8f98be6 100644
--- a/extension.js
+++ b/extension.js
@@ -13,14 +13,16 @@ OnScreenKeyboardButton.prototype = {
_init: function() {
this.actor = new St.Button ({ label: 'Keyboard' });
this.actor.connect("clicked", Lang.bind(this, this._toggleShowOnScreenKeyboard));
+ this._onScreenKeyboardShown = false;
},
_toggleShowOnScreenKeyboard: function() {
- if (Main.keyboard && Main.keyboard._visible) {
+ if (this._onScreenKeyboardShown) {
Main.keyboard.hide();
} else {
Main.keyboard.show();
}
+ this._onScreenKeyboardShown = !this._onScreenKeyboardShown;
},
};