mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: add "toggle grid" to command palette (#7887)
This commit is contained in:
parent
da2e507298
commit
890ed9f31f
7 changed files with 65 additions and 5 deletions
|
@ -2,10 +2,13 @@ import { CODES, KEYS } from "../keys";
|
|||
import { register } from "./register";
|
||||
import { GRID_SIZE } from "../constants";
|
||||
import { AppState } from "../types";
|
||||
import { gridIcon } from "../components/icons";
|
||||
|
||||
export const actionToggleGridMode = register({
|
||||
name: "gridMode",
|
||||
label: "labels.showGrid",
|
||||
icon: gridIcon,
|
||||
keywords: ["snap"],
|
||||
label: "labels.toggleGrid",
|
||||
viewMode: true,
|
||||
trackEvent: {
|
||||
category: "canvas",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue