Commit 7aeb752
committed
fix: send message on main Return key in MUI composer (X11/native-tft)
LVGL's X11 input driver maps only XK_KP_Enter to LV_KEY_ENTER; the main
Return key falls through XLookupString as a raw '\r', which the one-line
message textarea silently discards (lv_textarea.c one_line filter). As a
result, typing worked but pressing Enter never sent the message - only
the on-screen keyboard checkmark did (lv_keyboard sends LV_EVENT_READY
directly).
Handle LV_EVENT_KEY == '\r' in ui_event_message_ready and route it into
the existing LV_EVENT_READY send logic. Keypad Enter is unaffected (its
LV_KEY_ENTER already triggers a nested LV_EVENT_READY from the textarea
class handler, and '\n' != '\r' avoids any double-send). The
space+return CR_REPLACEMENT newline trick keeps working, now also with
the physical Return key.1 parent effbb92 commit 7aeb752
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1678 | 1678 | | |
1679 | 1679 | | |
1680 | 1680 | | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
1681 | 1690 | | |
1682 | 1691 | | |
1683 | 1692 | | |
| |||
0 commit comments