fix KC.LM

This commit is contained in:
xs5871
2022-05-26 11:29:41 +00:00
committed by Kyle Brown
parent 4a29530ad5
commit 08d3386643
3 changed files with 32 additions and 3 deletions

28
tests/test_layers.py Normal file
View File

@@ -0,0 +1,28 @@
import unittest
from kmk.keys import KC
from kmk.modules.layers import Layers
from tests.keyboard_test import KeyboardTest
class TestLayers(unittest.TestCase):
def setUp(self):
self.kb = KeyboardTest(
[Layers()],
[
[KC.N0, KC.LM(1, KC.LCTL)],
[KC.A, KC.B],
],
debug_enabled=False,
)
def test_layermod(self):
self.kb.test(
'Layer + Mod',
[(1, True), (0, True), (1, False), (0, False)],
[{KC.LCTL}, {KC.LCTL, KC.A}, {KC.A}, {}],
)
if __name__ == '__main__':
unittest.main()