mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: Checkmark to toggle context-menu-items (#2645)
This commit is contained in:
parent
aff817c667
commit
0faec7efb6
7 changed files with 27 additions and 17 deletions
|
@ -3643,13 +3643,15 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||
CANVAS_ONLY_ACTIONS.includes(action.name),
|
||||
),
|
||||
{
|
||||
shortcutName: "toggleGridMode",
|
||||
label: t("labels.toggleGridMode"),
|
||||
checked: this.state.gridSize !== null,
|
||||
shortcutName: "gridMode",
|
||||
label: t("labels.gridMode"),
|
||||
action: this.toggleGridMode,
|
||||
},
|
||||
{
|
||||
shortcutName: "toggleStats",
|
||||
label: t("labels.toggleStats"),
|
||||
checked: this.state.showStats,
|
||||
shortcutName: "stats",
|
||||
label: t("labels.stats"),
|
||||
action: this.toggleStats,
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue