8000 Added keypress codes for OPT modifier. · brushmate/circuitpython@8632701 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8632701

Browse files
Added keypress codes for OPT modifier.
1 parent 8b8927b commit 8632701

File tree

1 file changed

+2
-0
lines changed
  • ports/espressif/boards/m5stack_cardputer

1 file changed

+2
-0
lines changed

ports/espressif/boards/m5stack_cardputer/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ void update_keyboard(keypad_eventqueue_obj_t *queue) {
227227
if (ascii > 0) {
228228
if (keystate[KEY_ALT]) {
229229
ringbuf_put(&keyqueue, '\e');
230+
} else if (keystate[KEY_OPT]) {
231+
ringbuf_put(&keyqueue, '\x10');
230232
}
231233
ringbuf_put(&keyqueue, ascii);
232234
}

0 commit comments

Comments
 (0)
0