feat: Checkmark to toggle context-menu-items (#2645)

This commit is contained in:
Rene 2020-12-20 23:20:03 +01:00 committed by GitHub
parent aff817c667
commit 0faec7efb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 17 deletions

View file

@ -19,8 +19,8 @@ export type ShortcutName =
| "copyAsSvg"
| "group"
| "ungroup"
| "toggleGridMode"
| "toggleStats"
| "gridMode"
| "stats"
| "addToLibrary";
const shortcutMap: Record<ShortcutName, string[]> = {
@ -51,8 +51,8 @@ const shortcutMap: Record<ShortcutName, string[]> = {
copyAsSvg: [],
group: [getShortcutKey("CtrlOrCmd+G")],
ungroup: [getShortcutKey("CtrlOrCmd+Shift+G")],
toggleGridMode: [getShortcutKey("CtrlOrCmd+'")],
toggleStats: [],
gridMode: [getShortcutKey("CtrlOrCmd+'")],
stats: [],
addToLibrary: [],
};