KeyboardMapper: Export keymap not as a byte, but as unicode
What a silly mixup. Loading and saving no longer loses any data! :^)
This commit is contained in:
parent
4deb0f8343
commit
03b11af00f
Notes:
sideshowbarker
2024-07-18 22:41:02 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/03b11af00fd Pull-request: https://github.com/SerenityOS/serenity/pull/5192 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bcoles Reviewed-by: https://github.com/emanuele6 Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 1 deletions
|
@ -174,7 +174,8 @@ void KeyboardMapperWidget::save_to_file(const StringView& file_name)
|
|||
JsonArray items;
|
||||
for (int i = 0; i < 90; i++) {
|
||||
AK::StringBuilder sb;
|
||||
sb.append(values[i]);
|
||||
if (values[i])
|
||||
sb.append_code_point(values[i]);
|
||||
|
||||
JsonValue val(sb.to_string());
|
||||
items.append(move(val));
|
||||
|
|
Loading…
Add table
Reference in a new issue