Acfboy commented on issue #18566:
URL: https://github.com/apache/nuttx/issues/18566#issuecomment-5396807562
> then backspace seems to generate some incorrect code/character in MWdemo
text input field
@ppisa, this looks like the NuttX HID driver maps the Backspace key to ASCII
DEL. I had handled that in the mw kbd_nuttx_raw driver before,
```c
static MWKEY raw_byte_to_mwkey(uint8_t ch)
{
switch (ch)
{
case 0x7f:
return MWKEY_BACKSPACE;
case 0x0a:
return MWKEY_ENTER;
default:
if (ch < 128)
{
return (MWKEY)ch;
}
return MWKEY_UNKNOWN;
}
}
```
but didn't do the same in the event driver (because at that time the usb hid
driver haven't updated to event path yet). Applying the same handling to
kbd_nuttx_event should fix it.
I have opened a pr in mw to solve it
https://github.com/ghaerr/microwindows/pull/199 . Once it is merged, I will
open a pr in nuttx-apps to change the commit hash used in Makefile.
By the way, thanks for the reminder, I have already submit the materials for
final evaluation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]