Sort keymap entries in preferences

This commit is contained in:
luboslenco
2024-07-20 22:14:19 +02:00
parent aa3ca4b902
commit ef5314b95a
+3
View File
@@ -801,6 +801,9 @@ function box_preferences_show() {
let index: i32 = 0;
ui.changed = false;
let keys: string[] = map_keys(config_keymap);
array_sort(keys, function (a: any_ptr, b: any_ptr): i32 {
return strcmp(DEREFERENCE(a), DEREFERENCE(b));
});
for (let i: i32 = 0; i < keys.length; ++i) {
let key: string = keys[i];
let h: zui_handle_t = zui_nest(zui_handle(__ID__), index++);