mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
style: match editing experience to match capcut
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user