feat: implement platform-specific keyboard shortcuts and refactor shortcut data management
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user