mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
Kernel: Set correct KeyCode count
The underlying value of the `KeyCode::Key_*` enum values starts at 0, so we should add 1 to `Key_Menu` to get the correct count.
This commit is contained in:
committed by
Andrew Kaster
parent
b7bce816b2
commit
015622bc22
@@ -152,7 +152,7 @@ enum KeyCode : u8 {
|
||||
Key_Shift
|
||||
= Key_LeftShift,
|
||||
};
|
||||
int const key_code_count = Key_Menu;
|
||||
size_t const key_code_count = Key_Menu + 1;
|
||||
|
||||
enum KeyModifier {
|
||||
Mod_None = 0x00,
|
||||
|
||||
Reference in New Issue
Block a user