Fix layer tap interrupted
This commit is contained in:
@@ -11,8 +11,8 @@ class TestHoldTap(unittest.TestCase):
|
||||
KC.clear()
|
||||
|
||||
self.t_within = 2 * KeyboardTest.loop_delay_ms
|
||||
self.t_after = 5 * KeyboardTest.loop_delay_ms
|
||||
tap_time = (self.t_after + self.t_within) // 2
|
||||
self.t_after = 6 * KeyboardTest.loop_delay_ms
|
||||
tap_time = 5 * KeyboardTest.loop_delay_ms
|
||||
|
||||
# overide default timeouts
|
||||
HoldTap.tap_time = tap_time
|
||||
@@ -91,13 +91,13 @@ class TestHoldTap(unittest.TestCase):
|
||||
|
||||
keyboard.test(
|
||||
'LT within tap time rolling -> tap behavior',
|
||||
[(1, True), t_within, (3, True), t_after, (1, False), (3, False)],
|
||||
[(1, True), t_within, (3, True), (1, False), (3, False)],
|
||||
[{KC.B}, {KC.B, KC.D}, {KC.D}, {}],
|
||||
)
|
||||
|
||||
keyboard.test(
|
||||
'LT within tap time nested -> tap behavior',
|
||||
[(1, True), t_within, (3, True), (3, False), t_after, (1, False)],
|
||||
[(1, True), t_within, (3, True), (3, False), (1, False)],
|
||||
[{KC.B}, {KC.B, KC.D}, {KC.B}, {}],
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user