[gnome-shell/wip/carlosg/osk-cldr] keyboard: Ensure to resize keys after layer change
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-cldr] keyboard: Ensure to resize keys after layer change
- Date: Fri, 1 Dec 2017 19:19:39 +0000 (UTC)
commit f756d1eaaea4299ac47f447d4d220c02f72fc850
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Dec 1 20:17:17 2017 +0100
keyboard: Ensure to resize keys after layer change
The keys possibly need resizing after a (new) layer has been set, there's
however calling places that don't. Instead, fold this._redraw() into
setActiveLayer().
js/ui/keyboard.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 40be2c4..fe32414 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -682,12 +682,10 @@ var Keyboard = new Lang.Class({
_onLevelChanged: function (level) {
this._setActiveLayer(level);
- this._redraw();
},
_onGroupChanged: function () {
this._setActiveLayer(0);
- this._redraw();
},
_onKeyboardGroupsChanged: function(keyboard) {
@@ -704,6 +702,7 @@ var Keyboard = new Lang.Class({
}
this._current_page = layers[activeLevel];
+ this._redraw();
this._current_page.show();
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]