keyboard_widget: improve switching to next key when layouts are used
parent
46b498057b
commit
838bee0767
|
|
@ -186,6 +186,8 @@ class KeyboardWidget(QWidget):
|
||||||
option = self.layout_editor.get_choice(idx)
|
option = self.layout_editor.get_choice(idx)
|
||||||
self.widgets += self.widgets_for_layout[idx][option]
|
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
|
# determine maximum width and height of container
|
||||||
max_w = max_h = 0
|
max_w = max_h = 0
|
||||||
for key in self.widgets:
|
for key in self.widgets:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue