summaryrefslogtreecommitdiff
path: root/Kernel/Devices/KeyboardDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-10 14:29:32 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-10 14:29:32 +0200
commita4548a150f339156c05455a11a66c6e8c8888e7c (patch)
tree346876229e0d836e61e10fab2a4c495b188b1d12 /Kernel/Devices/KeyboardDevice.cpp
parent2eead3dfc0207729363d7c4620ecd7282c502a35 (diff)
downloadserenity-a4548a150f339156c05455a11a66c6e8c8888e7c.zip
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. :^)
Diffstat (limited to 'Kernel/Devices/KeyboardDevice.cpp')
-rw-r--r--Kernel/Devices/KeyboardDevice.cpp20
1 files changed, 16 insertions, 4 deletions
diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp
index 3659c2165b..bb833f29fb 100644
--- a/Kernel/Devices/KeyboardDevice.cpp
+++ b/Kernel/Devices/KeyboardDevice.cpp
@@ -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,