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:
@@ -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
|
||||
|
Reference in New Issue
Block a user