feat: add "toggle grid" to command palette (#7887)

This commit is contained in:
David Luzar 2024-04-13 19:12:29 +02:00 committed by GitHub
parent da2e507298
commit 890ed9f31f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 65 additions and 5 deletions

View file

@ -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",