1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:47:36 +00:00

Kernel: Change the code point of numpad keys to 0, when Num Lock is off

Previously we would set the KeyCode correctly to the appropriate
extended keys values, like Home and End, but keep the code point of the
original keys, like 1, 2, 3, etc. Because of this, the keys would just
print the original keys, instead of behaving like the extended ones.
This commit is contained in:
0GreenClover0 2023-08-19 23:49:48 +02:00 committed by Andrew Kaster
parent c261e5e39b
commit 719ab586c4
3 changed files with 7 additions and 3 deletions

View file

@ -46,7 +46,7 @@ public:
SpinlockProtected<KeymapData, LockRank::None>& keymap_data() { return m_keymap_data; }
u32 get_char_from_character_map(KeyEvent) const;
u32 get_char_from_character_map(KeyEvent, bool) const;
void set_client(KeyboardClient* client);
void set_maps(NonnullOwnPtr<KString> character_map_name, Keyboard::CharacterMapData const& character_map);