aboutsummaryrefslogtreecommitdiff
path: root/src/hci/keymap/keymap_es.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2022-02-15 11:28:57 +0000
committerMichael Brown <mcb30@ipxe.org>2022-02-15 13:37:41 +0000
commitc7d78192919bfa62fde33650e1506e902816eec3 (patch)
tree15718c529fa1643c325bee89d62c1b021cc67f36 /src/hci/keymap/keymap_es.c
parente1cedbc0d4fdb0e16818f6b722f4873a50780761 (diff)
downloadipxe-c7d78192919bfa62fde33650e1506e902816eec3.zip
ipxe-c7d78192919bfa62fde33650e1506e902816eec3.tar.gz
ipxe-c7d78192919bfa62fde33650e1506e902816eec3.tar.bz2
[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>
Diffstat (limited to 'src/hci/keymap/keymap_es.c')
-rw-r--r--src/hci/keymap/keymap_es.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hci/keymap/keymap_es.c b/src/hci/keymap/keymap_es.c
index 397e2cb..614ca7b 100644
--- a/src/hci/keymap/keymap_es.c
+++ b/src/hci/keymap/keymap_es.c
@@ -24,9 +24,11 @@ static struct keymap_key es_basic[] = {
{ 0x3e, 0x3a }, /* '>' => ':' */
{ 0x3f, 0x5f }, /* '?' => '_' */
{ 0x40, 0x22 }, /* '@' => '"' */
+ { 0x5b, 0x60 }, /* '[' => '`' */
{ 0x5d, 0x2b }, /* ']' => '+' */
{ 0x5e, 0x26 }, /* '^' => '&' */
{ 0x5f, 0x3f }, /* '_' => '?' */
+ { 0x7b, 0x5e }, /* '{' => '^' */
{ 0x7d, 0x2a }, /* '}' => '*' */
{ 0xdc, 0x3c }, /* Pseudo-'\\' => '<' */
{ 0xfc, 0x3e }, /* Pseudo-'|' => '>' */
@@ -35,8 +37,11 @@ static struct keymap_key es_basic[] = {
/** "es" AltGr remapping */
static struct keymap_key es_altgr[] = {
+ { 0x27, 0x7b }, /* '\'' => '{' */
{ 0x30, 0x7d }, /* '0' => '}' */
{ 0x32, 0x40 }, /* '2' => '@' */
+ { 0x37, 0x7b }, /* '7' => '{' */
+ { 0x38, 0x5b }, /* '8' => '[' */
{ 0x39, 0x5d }, /* '9' => ']' */
{ 0x5c, 0x7d }, /* '\\' => '}' */
{ 0x71, 0x40 }, /* 'q' => '@' */