Implement oneshot key stacking

This commit is contained in:
xs5871
2023-02-16 05:59:46 +00:00
committed by xs5871
parent deb941b196
commit 6532497bb2
2 changed files with 61 additions and 13 deletions

View File

@@ -67,7 +67,6 @@ class TestHoldTap(unittest.TestCase):
[{KC.E}, {KC.D, KC.E}, {KC.E}, {}],
)
keyboard.test(
'OS hold with multiple interrupt keys',
[
@@ -81,3 +80,32 @@ class TestHoldTap(unittest.TestCase):
],
[{KC.E}, {KC.D, KC.E}, {KC.E}, {KC.C, KC.E}, {KC.E}, {}],
)
keyboard.test(
'OS stacking within timeout reset',
[
(4, True),
(4, False),
t_within,
(5, True),
(5, False),
t_within,
(3, True),
(3, False),
],
[{KC.E}, {KC.E, KC.F}, {KC.E, KC.F, KC.D}, {KC.E, KC.F}, {KC.F}, {}],
)
keyboard.test(
'OS stacking timed out',
[
(4, True),
(4, False),
(5, True),
(5, False),
t_after,
(3, True),
(3, False),
],
[{KC.E}, {KC.E, KC.F}, {KC.E}, {}, {KC.D}, {}],
)