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>
This commit is contained in:
Kanav Arora
2023-11-22 04:06:23 +05:30
committed by GitHub
parent a67199e0c3
commit ff42526a09
15 changed files with 337 additions and 2 deletions

View File

@ -0,0 +1,39 @@
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,
},
];