mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-21 18:00:16 +00:00
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: 03b11af00f
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;
|
JsonArray items;
|
||||||
for (int i = 0; i < 90; i++) {
|
for (int i = 0; i < 90; i++) {
|
||||||
AK::StringBuilder sb;
|
AK::StringBuilder sb;
|
||||||
sb.append(values[i]);
|
if (values[i])
|
||||||
|
sb.append_code_point(values[i]);
|
||||||
|
|
||||||
JsonValue val(sb.to_string());
|
JsonValue val(sb.to_string());
|
||||||
items.append(move(val));
|
items.append(move(val));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue