Add LeaderMode.TIMEOUT (QMK default Leader mode)

This allows leader sequences to "time out" rather than requiring an
Enter keypress to end.

This also rolls back some unnecessary changes from #72 to the matrix
scanner for performance reasons.

In theory we can use this in the future for Tap Dance support (#40)

Resolves #1
Resolves #37
This commit is contained in:
Josh Klar committed 2018-10-19 01:49:37 -07:00
1 parent aa4b164067
commit 2d1290a12c
5 files changed
+77 -50

No files matched your search

+5 -4
View File
@@ -98,12 +98,13 @@ class MatrixScanner:
self.report[2] = new_val
self.state[ba_idx] = new_val
any_changed = True
yield self.report
break
ba_idx += 1
opin.value(False)
if any_changed:
break
if not any_changed:
yield None
if any_changed:
return self.report