mirror of
https://github.com/ipxe/ipxe
synced 2025-12-25 00:17:57 +03:00
[console] Update genkeymap to work with current databases
Rewrite genkeymap.pl in Python with added sanity checks, and update the list of keyboard mappings to remove those no longer supported by the underlying "loadkeys" tool. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -12,18 +12,21 @@ FILE_LICENCE ( PUBLIC_DOMAIN );
|
||||
|
||||
/** "pt" keyboard mapping */
|
||||
struct key_mapping pt_mapping[] __keymap = {
|
||||
{ 0x1c, 0x1d }, /* 0x1c => 0x1d */
|
||||
{ 0x1d, 0x1b }, /* 0x1d => 0x1b */
|
||||
{ 0x22, 0x5e }, /* '"' => '^' */
|
||||
{ 0x27, 0x7e }, /* '\'' => '~' */
|
||||
{ 0x2f, 0x3b }, /* '/' => ';' */
|
||||
{ 0x3f, 0x3a }, /* '?' => ':' */
|
||||
{ 0x5b, 0x27 }, /* '[' => '\'' */
|
||||
{ 0x5c, 0x5d }, /* '\\' => ']' */
|
||||
{ 0x5d, 0x5b }, /* ']' => '[' */
|
||||
{ 0x60, 0x27 }, /* '`' => '\'' */
|
||||
{ 0x7b, 0x60 }, /* '{' => '`' */
|
||||
{ 0x7c, 0x7d }, /* '|' => '}' */
|
||||
{ 0x7d, 0x7b }, /* '}' => '{' */
|
||||
{ 0x7e, 0x22 }, /* '~' => '"' */
|
||||
{ 0x1e, 0x36 }, /* 0x1e => '6' */
|
||||
{ 0x26, 0x2f }, /* '&' => '/' */
|
||||
{ 0x28, 0x29 }, /* '(' => ')' */
|
||||
{ 0x29, 0x3d }, /* ')' => '=' */
|
||||
{ 0x2a, 0x28 }, /* '*' => '(' */
|
||||
{ 0x2d, 0x27 }, /* '-' => '\'' */
|
||||
{ 0x2f, 0x2d }, /* '/' => '-' */
|
||||
{ 0x3c, 0x3b }, /* '<' => ';' */
|
||||
{ 0x3e, 0x3a }, /* '>' => ':' */
|
||||
{ 0x3f, 0x5f }, /* '?' => '_' */
|
||||
{ 0x40, 0x22 }, /* '@' => '"' */
|
||||
{ 0x5b, 0x2b }, /* '[' => '+' */
|
||||
{ 0x5e, 0x26 }, /* '^' => '&' */
|
||||
{ 0x5f, 0x3f }, /* '_' => '?' */
|
||||
{ 0x60, 0x5c }, /* '`' => '\\' */
|
||||
{ 0x7b, 0x2a }, /* '{' => '*' */
|
||||
{ 0x7e, 0x7c }, /* '~' => '|' */
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user