keyboard_widget: improve switching to next key when layouts are used

main
Ilya Zhuravlev 2020-12-20 22:43:45 -05:00
parent 46b498057b
commit 838bee0767
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ class KeyboardWidget(QWidget):
option = self.layout_editor.get_choice(idx)
self.widgets += self.widgets_for_layout[idx][option]
self.widgets.sort(key=lambda w: (w.y, w.x))
# determine maximum width and height of container
max_w = max_h = 0
for key in self.widgets: