2020-10-21 21:19:42 +02:00
|
|
|
from kmk.keys import make_argumented_key
|
2022-07-21 17:50:30 +02:00
|
|
|
from kmk.modules.holdtap import HoldTap, HoldTapKeyMeta
|
|
|
|
|
|
|
|
|
2021-09-19 14:14:13 +02:00
|
|
|
class ModTap(HoldTap):
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
|
|
|
make_argumented_key(
|
2022-10-11 19:45:19 +02:00
|
|
|
validator=HoldTapKeyMeta,
|
2021-09-19 14:14:13 +02:00
|
|
|
names=('MT',),
|
|
|
|
on_press=self.ht_pressed,
|
|
|
|
on_release=self.ht_released,
|
|
|
|
)
|