From d3cbf4f1fb46e02adeaab8294eb4130f2f5d1aa7 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Tue, 29 Dec 2020 07:37:24 -0500 Subject: [PATCH] keyboard_widget: don't show decals --- src/main/python/keyboard_widget.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/python/keyboard_widget.py b/src/main/python/keyboard_widget.py index b50d092..1f36110 100644 --- a/src/main/python/keyboard_widget.py +++ b/src/main/python/keyboard_widget.py @@ -186,6 +186,8 @@ class KeyboardWidget(QWidget): option = self.layout_editor.get_choice(idx) self.widgets += self.widgets_for_layout[idx][option] + self.widgets = list(filter(lambda w: not w.desc.decal, self.widgets)) + self.widgets.sort(key=lambda w: (w.y, w.x)) # determine maximum width and height of container