mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-02 12:30:31 +00:00
Kernel: Handle 'Menu' key on PS/2 keyboard
This commit is contained in:
parent
e616cb35ba
commit
0d22ec9d32
Notes:
sideshowbarker
2024-07-18 22:13:54 +09:00
Author: https://github.com/boricj Commit: https://github.com/SerenityOS/serenity/commit/0d22ec9d32c Pull-request: https://github.com/SerenityOS/serenity/pull/5129
2 changed files with 6 additions and 1 deletions
|
@ -134,7 +134,8 @@
|
|||
__ENUMERATE_KEY_CODE(Pipe, "|") \
|
||||
__ENUMERATE_KEY_CODE(Tilde, "~") \
|
||||
__ENUMERATE_KEY_CODE(Backtick, "`") \
|
||||
__ENUMERATE_KEY_CODE(Logo, "Logo")
|
||||
__ENUMERATE_KEY_CODE(Logo, "Logo") \
|
||||
__ENUMERATE_KEY_CODE(Menu, "Menu")
|
||||
|
||||
enum KeyCode : u8 {
|
||||
#define __ENUMERATE_KEY_CODE(name, ui_name) Key_##name,
|
||||
|
|
|
@ -132,6 +132,8 @@ static const KeyCode unshifted_key_map[0x80] = {
|
|||
Key_Invalid,
|
||||
Key_Invalid,
|
||||
Key_Logo,
|
||||
Key_Invalid,
|
||||
Key_Menu,
|
||||
};
|
||||
|
||||
static const KeyCode shifted_key_map[0x100] = {
|
||||
|
@ -227,6 +229,8 @@ static const KeyCode shifted_key_map[0x100] = {
|
|||
Key_Invalid,
|
||||
Key_Invalid,
|
||||
Key_Logo,
|
||||
Key_Invalid,
|
||||
Key_Menu,
|
||||
};
|
||||
|
||||
static const KeyCode numpad_key_map[13] = { Key_7, Key_8, Key_9, Key_Invalid, Key_4, Key_5, Key_6, Key_Invalid, Key_1, Key_2, Key_3, Key_0, Key_Comma };
|
||||
|
|
Loading…
Reference in a new issue