change ModTap to allow for activating mod on hold, rolling key presses and fix stuck mod

This commit is contained in:
Christian Tu
2021-09-19 14:14:13 +02:00
parent 27cf8e7d4d
commit 0a61cbd4af
3 changed files with 151 additions and 111 deletions

View File

@@ -258,7 +258,7 @@ class KMKKeyboard:
self._timeouts[timeout_key] = callback
return timeout_key
def _cancel_timeout(self, timeout_key):
def cancel_timeout(self, timeout_key):
if timeout_key in self._timeouts:
del self._timeouts[timeout_key]