style: match editing experience to match capcut

This commit is contained in:
Maze Winther
2025-07-18 11:51:47 +02:00
parent 74e7d427aa
commit f8ccb673bf
3 changed files with 138 additions and 482 deletions
@@ -114,7 +114,13 @@ export const useKeyboardShortcutsHelp = () => {
}
});
return result;
// Sort shortcuts by category first, then by description to ensure consistent ordering
return result.sort((a, b) => {
if (a.category !== b.category) {
return a.category.localeCompare(b.category);
}
return a.description.localeCompare(b.description);
});
}, [keybindings]);
return {