mirror of
https://github.com/ipxe/ipxe
synced 2026-01-23 04:29:01 +03:00
[console] Treat dead keys as producing their ASCII equivalents
Treat dead keys in target keymaps as producing the closest equivalent ASCII character, since many of these characters are otherwise unrepresented on the keyboard. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -15,10 +15,12 @@ static struct keymap_key nl_basic[] = {
|
||||
{ 0x1c, 0x3c }, /* 0x1c => '<' */
|
||||
{ 0x1d, 0x1c }, /* 0x1d => 0x1c */
|
||||
{ 0x1e, 0x36 }, /* 0x1e => '6' */
|
||||
{ 0x22, 0x60 }, /* '"' => '`' */
|
||||
{ 0x26, 0x5f }, /* '&' => '_' */
|
||||
{ 0x28, 0x29 }, /* '(' => ')' */
|
||||
{ 0x29, 0x27 }, /* ')' => '\'' */
|
||||
{ 0x2a, 0x28 }, /* '*' => '(' */
|
||||
{ 0x2b, 0x7e }, /* '+' => '~' */
|
||||
{ 0x2d, 0x2f }, /* '-' => '/' */
|
||||
{ 0x2f, 0x2d }, /* '/' => '-' */
|
||||
{ 0x3b, 0x2b }, /* ';' => '+' */
|
||||
@@ -31,6 +33,7 @@ static struct keymap_key nl_basic[] = {
|
||||
{ 0x5e, 0x26 }, /* '^' => '&' */
|
||||
{ 0x5f, 0x3f }, /* '_' => '?' */
|
||||
{ 0x60, 0x40 }, /* '`' => '@' */
|
||||
{ 0x7b, 0x5e }, /* '{' => '^' */
|
||||
{ 0x7c, 0x3e }, /* '|' => '>' */
|
||||
{ 0x7d, 0x7c }, /* '}' => '|' */
|
||||
{ 0xdc, 0x5d }, /* Pseudo-'\\' => ']' */
|
||||
@@ -41,6 +44,7 @@ static struct keymap_key nl_basic[] = {
|
||||
/** "nl" AltGr remapping */
|
||||
static struct keymap_key nl_altgr[] = {
|
||||
{ 0x2d, 0x5c }, /* '-' => '\\' */
|
||||
{ 0x38, 0x7b }, /* '8' => '{' */
|
||||
{ 0x39, 0x7d }, /* '9' => '}' */
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user