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:
parent
de676bbf97
commit
ee41d6e154
7 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue