USB: add arrow key support to usb_kbd
authorAllen Martin <amartin@nvidia.com>
Tue, 6 Nov 2012 21:26:03 +0000 (13:26 -0800)
committerMarek Vasut <marex@denx.de>
Mon, 19 Nov 2012 23:16:06 +0000 (00:16 +0100)
commit4151a400cfcd4762ca422a04890cd5869bac155c
treed9d752c63ec145953b8fc685a28b00a6fe3e1622
parent5ddcc38bee7c4e58197ff8de7919aca2532a8e03
USB: add arrow key support to usb_kbd

Check for scancodes for arrow keys and map them to ^F/^B, ^N/^P.
Control characters are used instead of ANSI sequence because the
queueing code in usb_kbd doesn't handle the data increase when one
keypress generates 3 keycodes.  The real fix is to convert this driver
to use the input subsystem and queue, but this allows arrow keys to
work until this driver is converted.

Signed-off-by: Allen Martin <amartin@nvidia.com>
common/usb_kbd.c