updates based on review comments
This commit is contained in:
parent
bce7959f66
commit
1b902b907c
@ -27,8 +27,6 @@ class ModHoldAndTap(Module):
|
||||
def process_key(self, keyboard, key, is_pressed, int_coord):
|
||||
if isinstance(key.meta, ModHoldAndTapValidator):
|
||||
|
||||
layer_id = keyboard.active_layers[0]
|
||||
if layer_id > 0:
|
||||
if self._active and self._prev_key is not None and is_pressed:
|
||||
# release previous key
|
||||
self.release(keyboard, self._prev_key)
|
||||
|
@ -46,6 +46,10 @@ class TestModHoldLayerTap(unittest.TestCase):
|
||||
(1, False),
|
||||
],
|
||||
[
|
||||
{KC.LSFT, KC.LCTL, KC.TAB},
|
||||
{KC.LSFT, KC.LCTL},
|
||||
{KC.LSFT, KC.LCTL, KC.TAB},
|
||||
{KC.LSFT, KC.LCTL},
|
||||
{KC.B},
|
||||
{},
|
||||
],
|
||||
@ -97,6 +101,8 @@ class TestModHoldLayerTap(unittest.TestCase):
|
||||
{KC.LGUI},
|
||||
{KC.B},
|
||||
{},
|
||||
{KC.LSFT, KC.LCTL, KC.TAB},
|
||||
{KC.LSFT, KC.LCTL},
|
||||
{KC.B},
|
||||
{},
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user