mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-27 20:52:01 +00:00
Kernel+LibKeyboard: Store the keymap name when setting system keymap
This way we can query the kernel to see which keymap is currently in use.
This commit is contained in:
parent
8dd0c391e9
commit
00a0e525e6
Notes:
sideshowbarker
2024-07-19 04:13:23 +09:00
Author: https://github.com/vkoskiv
Commit: 00a0e525e6
Pull-request: https://github.com/SerenityOS/serenity/pull/3021
Issue: https://github.com/SerenityOS/serenity/issues/2684
Reviewed-by: https://github.com/awesomekling
6 changed files with 32 additions and 6 deletions
|
@ -391,10 +391,11 @@ KeyboardClient::~KeyboardClient()
|
|||
{
|
||||
}
|
||||
|
||||
void KeyboardDevice::set_maps(Keyboard::CharacterMapData character_map_data)
|
||||
void KeyboardDevice::set_maps(const Keyboard::CharacterMapData& character_map_data, const String& character_map_name)
|
||||
{
|
||||
m_character_map.set_character_map_data(character_map_data);
|
||||
dbg() << "New Character map passing to client.";
|
||||
m_character_map.set_character_map_name(character_map_name);
|
||||
dbg() << "New Character map \"" << character_map_name << "\" passing to client.";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue