keymap_editor: don't ever focus layer switch buttons

they end up looking silly with focus jumping around
main
Ilya Zhuravlev 2021-05-22 12:08:14 -04:00
parent 9ba0e9736d
commit 6ddbce17ec
1 changed files with 1 additions and 0 deletions

View File

@ -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))