1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 14:15:08 +00:00

Kernel: Hack the default keymap to support UK pipe/backslash

Since this key number doesn't appear to collide with anything on the
US keymap, I was thinking we could get away with supporting a hybrid
US/UK keymap. :^)
This commit is contained in:
Andreas Kling 2019-08-10 14:29:32 +02:00
parent 2eead3dfc0
commit a4548a150f

View file

@ -22,7 +22,13 @@ static char map[0x80] = {
'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']', '\n', 0,
'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', '\'', '`', 0, '\\',
'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/',
0, 0, 0, ' '
0, 0, 0, ' ', 0, 0,
//60
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
//70
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
//80
0, 0, 0, 0, 0, 0, '\\', 0, 0, 0,
};
static char shift_map[0x80] = {
@ -30,7 +36,13 @@ static char shift_map[0x80] = {
'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '{', '}', '\n', 0,
'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', '"', '~', 0, '|',
'Z', 'X', 'C', 'V', 'B', 'N', 'M', '<', '>', '?',
0, 0, 0, ' '
0, 0, 0, ' ', 0, 0,
//60
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
//70
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
//80
0, 0, 0, 0, 0, 0, '|', 0, 0, 0,
};
static KeyCode unshifted_key_map[0x80] = {
@ -120,7 +132,7 @@ static KeyCode unshifted_key_map[0x80] = {
Key_Delete, // 83
Key_Invalid,
Key_Invalid,
Key_Invalid,
Key_Backslash,
Key_F11,
Key_F12,
Key_Invalid,
@ -215,7 +227,7 @@ static KeyCode shifted_key_map[0x100] = {
Key_Delete, // 83
Key_Invalid,
Key_Invalid,
Key_Invalid,
Key_Pipe,
Key_F11,
Key_F12,
Key_Invalid,