mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: allow readonly actions to be used in viewMode (#5982)
This commit is contained in:
parent
8466eb0eef
commit
cc9e764585
11 changed files with 18 additions and 12 deletions
|
@ -56,6 +56,7 @@ export const actionToggleEditMenu = register({
|
|||
|
||||
export const actionFullScreen = register({
|
||||
name: "toggleFullScreen",
|
||||
viewMode: true,
|
||||
trackEvent: { category: "canvas", predicate: (appState) => !isFullScreen() },
|
||||
perform: () => {
|
||||
if (!isFullScreen()) {
|
||||
|
@ -73,6 +74,7 @@ export const actionFullScreen = register({
|
|||
|
||||
export const actionShortcuts = register({
|
||||
name: "toggleShortcuts",
|
||||
viewMode: true,
|
||||
trackEvent: { category: "menu", action: "toggleHelpDialog" },
|
||||
perform: (_elements, appState, _, { focusContainer }) => {
|
||||
if (appState.openDialog === "help") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue