mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-28 05:35:52 +03: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
Notes:
sideshowbarker
2024-07-18 22:38:10 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/ee41d6e1540 Pull-request: https://github.com/SerenityOS/serenity/pull/5215
@ -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
|
||||
```
|
||||
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user