[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:
@@ -18,6 +18,7 @@ static struct keymap_key dk_basic[] = {
|
||||
{ 0x28, 0x29 }, /* '(' => ')' */
|
||||
{ 0x29, 0x3d }, /* ')' => '=' */
|
||||
{ 0x2a, 0x28 }, /* '*' => '(' */
|
||||
{ 0x2b, 0x60 }, /* '+' => '`' */
|
||||
{ 0x2d, 0x2b }, /* '-' => '+' */
|
||||
{ 0x2f, 0x2d }, /* '/' => '-' */
|
||||
{ 0x3c, 0x3b }, /* '<' => ';' */
|
||||
@@ -28,6 +29,7 @@ static struct keymap_key dk_basic[] = {
|
||||
{ 0x5e, 0x26 }, /* '^' => '&' */
|
||||
{ 0x5f, 0x3f }, /* '_' => '?' */
|
||||
{ 0x7c, 0x2a }, /* '|' => '*' */
|
||||
{ 0x7d, 0x5e }, /* '}' => '^' */
|
||||
{ 0xdc, 0x3c }, /* Pseudo-'\\' => '<' */
|
||||
{ 0xfc, 0x3e }, /* Pseudo-'|' => '>' */
|
||||
{ 0, 0 }
|
||||
@@ -35,6 +37,7 @@ static struct keymap_key dk_basic[] = {
|
||||
|
||||
/** "dk" AltGr remapping */
|
||||
static struct keymap_key dk_altgr[] = {
|
||||
{ 0x30, 0x7d }, /* '0' => '}' */
|
||||
{ 0x32, 0x40 }, /* '2' => '@' */
|
||||
{ 0x3d, 0x7c }, /* '=' => '|' */
|
||||
{ 0x71, 0x40 }, /* 'q' => '@' */
|
||||
|
||||
Reference in New Issue
Block a user