From 6ddbce17ec484d23ad66a7e158b987cece9d4b26 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sat, 22 May 2021 12:08:14 -0400 Subject: [PATCH] keymap_editor: don't ever focus layer switch buttons they end up looking silly with focus jumping around --- src/main/python/keymap_editor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/python/keymap_editor.py b/src/main/python/keymap_editor.py index 7642ddc..f265fe3 100644 --- a/src/main/python/keymap_editor.py +++ b/src/main/python/keymap_editor.py @@ -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))