loader.efi: some systems do not translate scan code 0x8 to backspace
Add scancode translation for backspace.
This commit is contained in:
parent
4d83500fda
commit
591d5f0ef5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351695
@ -478,27 +478,30 @@ keybuf_inschar(EFI_INPUT_KEY *key)
|
|||||||
{
|
{
|
||||||
|
|
||||||
switch (key->ScanCode) {
|
switch (key->ScanCode) {
|
||||||
case 0x1: /* UP */
|
case SCAN_UP: /* UP */
|
||||||
keybuf[0] = 0x1b; /* esc */
|
keybuf[0] = 0x1b; /* esc */
|
||||||
keybuf[1] = '[';
|
keybuf[1] = '[';
|
||||||
keybuf[2] = 'A';
|
keybuf[2] = 'A';
|
||||||
break;
|
break;
|
||||||
case 0x2: /* DOWN */
|
case SCAN_DOWN: /* DOWN */
|
||||||
keybuf[0] = 0x1b; /* esc */
|
keybuf[0] = 0x1b; /* esc */
|
||||||
keybuf[1] = '[';
|
keybuf[1] = '[';
|
||||||
keybuf[2] = 'B';
|
keybuf[2] = 'B';
|
||||||
break;
|
break;
|
||||||
case 0x3: /* RIGHT */
|
case SCAN_RIGHT: /* RIGHT */
|
||||||
keybuf[0] = 0x1b; /* esc */
|
keybuf[0] = 0x1b; /* esc */
|
||||||
keybuf[1] = '[';
|
keybuf[1] = '[';
|
||||||
keybuf[2] = 'C';
|
keybuf[2] = 'C';
|
||||||
break;
|
break;
|
||||||
case 0x4: /* LEFT */
|
case SCAN_LEFT: /* LEFT */
|
||||||
keybuf[0] = 0x1b; /* esc */
|
keybuf[0] = 0x1b; /* esc */
|
||||||
keybuf[1] = '[';
|
keybuf[1] = '[';
|
||||||
keybuf[2] = 'D';
|
keybuf[2] = 'D';
|
||||||
break;
|
break;
|
||||||
case 0x17:
|
case SCAN_DELETE:
|
||||||
|
keybuf[0] = CHAR_BACKSPACE;
|
||||||
|
break;
|
||||||
|
case SCAN_ESC:
|
||||||
keybuf[0] = 0x1b; /* esc */
|
keybuf[0] = 0x1b; /* esc */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user