Files
twenty/front/src/modules/keyboard-shortcut-menu/constants/keyboardShortcuts.ts
Kanav Arora ff42526a09 2311 embed keyboard shortcuts (#2507)
* 2311-feat(front): AppHotKeyScope and CustomHotKeyScopes configured

* 2311-feat(front): Groups and Items added

* 2311-fix: pr requested changes

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-21 23:36:23 +01:00

40 lines
813 B
TypeScript

import { Shortcut, ShortcutType } from '../types/Shortcut';
export const keyboardShortcutsTable: Shortcut[] = [
{
label: 'Move right',
type: ShortcutType.Table,
firstHotKey: '→',
areSimultaneous: true,
},
{
label: 'Move left',
type: ShortcutType.Table,
firstHotKey: '←',
areSimultaneous: true,
},
{
label: 'Clear selection',
type: ShortcutType.Table,
firstHotKey: 'esc',
areSimultaneous: true,
},
];
export const keyboardShortcutsGeneral: Shortcut[] = [
{
label: 'Open search',
type: ShortcutType.General,
firstHotKey: '⌘',
secondHotKey: 'K',
areSimultaneous: false,
},
{
label: 'Mark as favourite',
type: ShortcutType.General,
firstHotKey: '⇧',
secondHotKey: 'F',
areSimultaneous: false,
},
];