factor out module pre-processing
This commit is contained in:
parent
62013f1770
commit
e04a01c25e
@ -162,6 +162,10 @@ class KMKKeyboard:
|
||||
print('MatrixUndefinedCoordinate(ic={})'.format(int_coord))
|
||||
return self
|
||||
|
||||
self.pre_process_key(self.current_key, is_pressed, int_coord)
|
||||
|
||||
def pre_process_key(self, key, is_pressed, int_coord=None):
|
||||
self.current_key = key
|
||||
for module in self.modules:
|
||||
try:
|
||||
self.current_key = module.process_key(
|
||||
|
Loading…
Reference in New Issue
Block a user