The AltGr remapping table is constructed to include only keys that are not reachable after applying the basic remapping table. The logic currently fails to include keys that are omitted entirely from the basic remapping table since they would map to a non-ASCII character. Fix this logic by allowing the remapping tables to include null mappings, which are then elided only at the point of constructing the C code fragment. Reported-by: Christian Nilsson <nikize@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
39 lines
789 B
C
39 lines
789 B
C
/** @file
|
|
*
|
|
* "mt" keyboard mapping
|
|
*
|
|
* This file is automatically generated; do not edit
|
|
*
|
|
*/
|
|
|
|
FILE_LICENCE ( PUBLIC_DOMAIN );
|
|
|
|
#include <ipxe/keymap.h>
|
|
|
|
/** "mt" basic remapping */
|
|
static struct keymap_key mt_basic[] = {
|
|
{ 0x1c, 0x1e }, /* 0x1c => 0x1e */
|
|
{ 0x22, 0x40 }, /* '"' => '@' */
|
|
{ 0x40, 0x22 }, /* '@' => '"' */
|
|
{ 0x5c, 0x23 }, /* '\\' => '#' */
|
|
{ 0x7c, 0x7e }, /* '|' => '~' */
|
|
{ 0, 0 }
|
|
};
|
|
|
|
/** "mt" AltGr remapping */
|
|
static struct keymap_key mt_altgr[] = {
|
|
{ 0x30, 0x7d }, /* '0' => '}' */
|
|
{ 0x37, 0x7b }, /* '7' => '{' */
|
|
{ 0x38, 0x5b }, /* '8' => '[' */
|
|
{ 0x39, 0x5d }, /* '9' => ']' */
|
|
{ 0x5c, 0x60 }, /* '\\' => '`' */
|
|
{ 0, 0 }
|
|
};
|
|
|
|
/** "mt" keyboard map */
|
|
struct keymap mt_keymap __keymap = {
|
|
.name = "mt",
|
|
.basic = mt_basic,
|
|
.altgr = mt_altgr,
|
|
};
|