feat: implement platform-specific keyboard shortcuts and refactor shortcut data management

This commit is contained in:
Firman Ramdhani
2026-07-13 10:17:07 +07:00
parent ad5be7056a
commit 164ec284ae
7 changed files with 58 additions and 28 deletions
+1
View File
@@ -0,0 +1 @@
export * from './shortcut.data';
@@ -0,0 +1,29 @@
export const shortcutsData = [
{
key: 'create_data',
label: 'information:shortcuts.create.label',
desc: 'information:shortcuts.create.desc',
macKeys: ['Cmd', 'Shift', 'N'],
macKeyIcons: ['⌘', '⇧', 'N'],
winKeys: ['Ctrl', 'Shift', 'N'],
winKeyIcons: ['Ctrl', '⇧', 'N'],
},
{
key: 'search_menu',
label: 'information:shortcuts.searchMenu.label',
desc: 'information:shortcuts.searchMenu.desc',
macKeys: ['Cmd', 'Shift', 'M'],
macKeyIcons: ['⌘', '⇧', 'M'],
winKeys: ['Ctrl', 'Shift', 'M'],
winKeyIcons: ['Ctrl', '⇧', 'M'],
},
{
key: 'collapse_sidebar',
label: 'information:shortcuts.toggleSidebar.label',
desc: 'information:shortcuts.toggleSidebar.desc',
macKeys: ['Cmd', 'Shift', 'B'],
macKeyIcons: ['⌘', '⇧', 'B'],
winKeys: ['Ctrl', 'Shift', 'B'],
winKeyIcons: ['Ctrl', '⇧', 'B'],
},
];