diff --git a/Base/res/keymaps/gb.json b/Base/res/keymaps/en-gb.json similarity index 100% rename from Base/res/keymaps/gb.json rename to Base/res/keymaps/en-gb.json diff --git a/Base/res/keymaps/en.json b/Base/res/keymaps/en-us.json similarity index 100% rename from Base/res/keymaps/en.json rename to Base/res/keymaps/en-us.json diff --git a/Base/res/keymaps/ptbr.json b/Base/res/keymaps/pt-br.json similarity index 100% rename from Base/res/keymaps/ptbr.json rename to Base/res/keymaps/pt-br.json diff --git a/Base/res/keymaps/ptpt.json b/Base/res/keymaps/pt-pt.json similarity index 100% rename from Base/res/keymaps/ptpt.json rename to Base/res/keymaps/pt-pt.json diff --git a/Base/usr/share/man/man1/keymap.md b/Base/usr/share/man/man1/keymap.md index b75a1438d31..7f9c04f14b7 100644 --- a/Base/usr/share/man/man1/keymap.md +++ b/Base/usr/share/man/man1/keymap.md @@ -18,11 +18,11 @@ Loading by name will search for keyboard layout files in `/res/keymaps/*.json`. Load a keyboard layout by name: ```sh -# keymap en +# keymap en-us ``` Load a keyboard layout using a file: ```sh -# keymap /res/keymaps/en.json +# keymap /res/keymaps/en-us.json # keymap ./map.json ``` diff --git a/Kernel/Devices/KeyboardDevice.cpp b/Kernel/Devices/KeyboardDevice.cpp index eef7e8f59b5..e6c737e01b7 100644 --- a/Kernel/Devices/KeyboardDevice.cpp +++ b/Kernel/Devices/KeyboardDevice.cpp @@ -404,7 +404,7 @@ KeyboardDevice::KeyboardDevice() : IRQHandler(IRQ_KEYBOARD) , CharacterDevice(85, 1) , m_controller(I8042Controller::the()) - , m_character_map("en", DEFAULT_CHARACTER_MAP) + , m_character_map("en-us", DEFAULT_CHARACTER_MAP) { } diff --git a/Userland/Utilities/keymap.cpp b/Userland/Utilities/keymap.cpp index 1f67810a365..024ca5eaa1b 100644 --- a/Userland/Utilities/keymap.cpp +++ b/Userland/Utilities/keymap.cpp @@ -73,7 +73,7 @@ int main(int argc, char** argv) auto character_map = Keyboard::CharacterMap::load_from_file(path); if (!character_map.has_value()) { warnln("Cannot read keymap {}", path); - warnln("Hint: Must be either a keymap name (e.g. 'en') or a full path."); + warnln("Hint: Must be either a keymap name (e.g. 'en-us') or a full path."); return 1; }