We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f4748b commit 51a0eb1Copy full SHA for 51a0eb1
m5stack/libs/hardware/matrix_keyboard.py
@@ -40,6 +40,19 @@ def tick(self) -> None:
40
self._keys.append(0x08)
41
elif status.space:
42
self._keys.append(0x20)
43
+ elif status.fn:
44
+ if len(status.word) == 0:
45
+ return
46
+ if status.word[0] == 47: # right
47
+ self._keys.append(183)
48
+ elif status.word[0] == 44: # left
49
+ self._keys.append(180)
50
+ elif status.word[0] == 59: # up
51
+ self._keys.append(181)
52
+ elif status.word[0] == 46: # down
53
+ self._keys.append(182)
54
+ elif status.word[0] == 96: # ESC
55
+ self._keys.append(0x1B)
56
else:
57
for word in status.word:
58
self._keys.append(word)
0 commit comments