1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 22:55:08 +00:00

Base: Rename some keymaps to use xx-xx format where appropriate

- en.json -> en-us.json
- gb.json -> en-gb.json
- ptbr.json -> pt-br.json
- ptpt.json -> pt-pt.json
This commit is contained in:
Linus Groh 2021-02-01 19:12:41 +01:00 committed by Andreas Kling
parent de676bbf97
commit ee41d6e154
7 changed files with 4 additions and 4 deletions

View file

@ -18,11 +18,11 @@ Loading by name will search for keyboard layout files in `/res/keymaps/*.json`.
Load a keyboard layout by name: Load a keyboard layout by name:
```sh ```sh
# keymap en # keymap en-us
``` ```
Load a keyboard layout using a file: Load a keyboard layout using a file:
```sh ```sh
# keymap /res/keymaps/en.json # keymap /res/keymaps/en-us.json
# keymap ./map.json # keymap ./map.json
``` ```

View file

@ -404,7 +404,7 @@ KeyboardDevice::KeyboardDevice()
: IRQHandler(IRQ_KEYBOARD) : IRQHandler(IRQ_KEYBOARD)
, CharacterDevice(85, 1) , CharacterDevice(85, 1)
, m_controller(I8042Controller::the()) , m_controller(I8042Controller::the())
, m_character_map("en", DEFAULT_CHARACTER_MAP) , m_character_map("en-us", DEFAULT_CHARACTER_MAP)
{ {
} }

View file

@ -73,7 +73,7 @@ int main(int argc, char** argv)
auto character_map = Keyboard::CharacterMap::load_from_file(path); auto character_map = Keyboard::CharacterMap::load_from_file(path);
if (!character_map.has_value()) { if (!character_map.has_value()) {
warnln("Cannot read keymap {}", path); 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; return 1;
} }