mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
Keymap+Base: Keycode fixes, remove workaround
Add missing keymap entries for the dollar sign and escape key and reformat the Hungarian keymap. Remove the workaround for "0x08", replace it with '\b'. Fix the octal/hex mixup in the value of escape key. (033 != 0x33, 033 == 0x1B)
This commit is contained in:
parent
fdde5cdf26
commit
790eaab6f5
5 changed files with 19 additions and 47 deletions
|
@ -27,10 +27,10 @@ char* read_map(const JsonObject& json, const String& name)
|
|||
} else if (key_value.length() == 1) {
|
||||
character = key_value.characters()[0];
|
||||
} else if (key_value.length() == 4) {
|
||||
if (key_value == "0x08") {
|
||||
character = 0x08;
|
||||
} else if (key_value == "0x33") {
|
||||
character = 0x33;
|
||||
// FIXME: Replace this workaround with "\u001B" in the keymap files
|
||||
// after these kind of escape sequences are implemented in JsonParser.
|
||||
if (key_value == "0x1B") {
|
||||
character = 0x1B;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "Unknown character in %s[%u] = %s.\n", name.characters(), i, key_value.characters());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue