keymap_editor: don't ever focus layer switch buttons
they end up looking silly with focus jumping aroundmain
parent
9ba0e9736d
commit
6ddbce17ec
|
|
@ -77,6 +77,7 @@ class KeymapEditor(BasicEditor):
|
|||
# create new layer labels
|
||||
for x in range(self.keyboard.layers):
|
||||
btn = SquareButton(str(x))
|
||||
btn.setFocusPolicy(Qt.NoFocus)
|
||||
btn.setRelSize(1.667)
|
||||
btn.setCheckable(True)
|
||||
btn.clicked.connect(lambda state, idx=x: self.switch_layer(idx))
|
||||
|
|
|
|||
Loading…
Reference in New Issue