mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +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
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
Add a link
Reference in a new issue