summaryrefslogtreecommitdiff
path: root/Kernel/Devices/KeyboardDevice.cpp
diff options
context:
space:
mode:
authorValtteri Koskivuori <vkoskiv@gmail.com>2020-08-06 02:03:32 +0300
committerAndreas Kling <kling@serenityos.org>2020-08-06 17:45:06 +0200
commit00a0e525e689e105fa6d1210198d3c947951bf6c (patch)
tree6735f2f208dd471596a8c3f2d76f2d5933908715 /Kernel/Devices/KeyboardDevice.cpp
parent8dd0c391e9d816a575e888a23dd13de991e413e5 (diff)
downloadserenity-00a0e525e689e105fa6d1210198d3c947951bf6c.zip
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.
Diffstat (limited to 'Kernel/Devices/KeyboardDevice.cpp')
-rw-r--r--Kernel/Devices/KeyboardDevice.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp
index e910fd7552..ac1d5ac349 100644
--- a/Kernel/Devices/KeyboardDevice.cpp
+++ b/Kernel/Devices/KeyboardDevice.cpp
@@ -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.";
}
}