summaryrefslogtreecommitdiff
path: root/Kernel/KeyboardDevice.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-03 02:52:22 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-03 02:52:22 +0100
commitb0c673265a73bcb5719986be589dfb10fee0ce22 (patch)
treea22bdff06fd5baa1cd434a8428957a754dcc4632 /Kernel/KeyboardDevice.cpp
parent7c06431ff7682b42c9e91a8ea27f54f73c7c28f8 (diff)
downloadserenity-b0c673265a73bcb5719986be589dfb10fee0ce22.zip
Applications: Map Alt+F4 to Quit in FileManager/ProcessManager/Terminal.
Diffstat (limited to 'Kernel/KeyboardDevice.cpp')
-rw-r--r--Kernel/KeyboardDevice.cpp28
1 files changed, 21 insertions, 7 deletions
diff --git a/Kernel/KeyboardDevice.cpp b/Kernel/KeyboardDevice.cpp
index 7cdaf3f6d9..8bbc8c76a1 100644
--- a/Kernel/KeyboardDevice.cpp
+++ b/Kernel/KeyboardDevice.cpp
@@ -50,9 +50,9 @@ static KeyCode unshifted_key_map[0x80] =
Key_Alt, // 54
Key_Invalid, Key_Invalid,
Key_Space, // 57
- Key_Invalid, Key_Invalid,
- Key_Invalid, // 60
- Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid,
+ Key_Invalid, // 58
+ Key_F1, Key_F2, Key_F3, Key_F4, Key_F5, Key_F6, Key_F7, Key_F8, Key_F9, Key_F10,
+ Key_Invalid,
Key_Invalid, // 70
Key_Invalid,
Key_Up,
@@ -65,6 +65,13 @@ static KeyCode unshifted_key_map[0x80] =
Key_Invalid,
Key_Down, // 80
Key_PageDown,
+ Key_Invalid,
+ Key_Invalid,
+ Key_Invalid,
+ Key_Invalid,
+ Key_Invalid,
+ Key_F11,
+ Key_F12,
};
static KeyCode shifted_key_map[0x100] =
@@ -81,10 +88,10 @@ static KeyCode shifted_key_map[0x100] =
Key_Z, Key_X, Key_C, Key_V, Key_B, Key_N, Key_M, Key_LessThan, Key_GreaterThan, Key_QuestionMark,
Key_Alt,
Key_Invalid, Key_Invalid,
- Key_Space,
- Key_Invalid, Key_Invalid,
- Key_Invalid, // 60
- Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid, Key_Invalid,
+ Key_Space, // 57
+ Key_Invalid, // 58
+ Key_F1, Key_F2, Key_F3, Key_F4, Key_F5, Key_F6, Key_F7, Key_F8, Key_F9, Key_F10,
+ Key_Invalid,
Key_Invalid, // 70
Key_Invalid,
Key_Up,
@@ -97,6 +104,13 @@ static KeyCode shifted_key_map[0x100] =
Key_Invalid,
Key_Down, // 80
Key_PageDown,
+ Key_Invalid,
+ Key_Invalid,
+ Key_Invalid,
+ Key_Invalid,
+ Key_Invalid,
+ Key_F11,
+ Key_F12,
};
void KeyboardDevice::key_state_changed(byte raw, bool pressed)