From 900b317bf396d9e94b06d00a871bc171ababa4b4 Mon Sep 17 00:00:00 2001
From: Sahil Nagpure <76729141+SahilNagpure07@users.noreply.github.com>
Date: Fri, 10 Nov 2023 20:14:02 +0530
Subject: [PATCH] feat: remove full screen shortcut (#7222)
---
src/actions/actionMenu.tsx | 18 ------------------
src/actions/index.ts | 1 -
src/components/HelpDialog.tsx | 1 -
3 files changed, 20 deletions(-)
diff --git a/src/actions/actionMenu.tsx b/src/actions/actionMenu.tsx
index 80a5c2b1..b259d726 100644
--- a/src/actions/actionMenu.tsx
+++ b/src/actions/actionMenu.tsx
@@ -3,7 +3,6 @@ import { ToolButton } from "../components/ToolButton";
import { t } from "../i18n";
import { showSelectedShapeActions, getNonDeletedElements } from "../element";
import { register } from "./register";
-import { allowFullScreen, exitFullScreen, isFullScreen } from "../utils";
import { KEYS } from "../keys";
export const actionToggleCanvasMenu = register({
@@ -52,23 +51,6 @@ export const actionToggleEditMenu = register({
),
});
-export const actionFullScreen = register({
- name: "toggleFullScreen",
- viewMode: true,
- trackEvent: { category: "canvas", predicate: (appState) => !isFullScreen() },
- perform: () => {
- if (!isFullScreen()) {
- allowFullScreen();
- }
- if (isFullScreen()) {
- exitFullScreen();
- }
- return {
- commitToHistory: false,
- };
- },
-});
-
export const actionShortcuts = register({
name: "toggleShortcuts",
viewMode: true,
diff --git a/src/actions/index.ts b/src/actions/index.ts
index 1e72aa48..b4551acf 100644
--- a/src/actions/index.ts
+++ b/src/actions/index.ts
@@ -44,7 +44,6 @@ export { actionCopyStyles, actionPasteStyles } from "./actionStyles";
export {
actionToggleCanvasMenu,
actionToggleEditMenu,
- actionFullScreen,
actionShortcuts,
} from "./actionMenu";
diff --git a/src/components/HelpDialog.tsx b/src/components/HelpDialog.tsx
index b27823fc..961158c0 100644
--- a/src/components/HelpDialog.tsx
+++ b/src/components/HelpDialog.tsx
@@ -254,7 +254,6 @@ export const HelpDialog = ({ onClose }: { onClose?: () => void }) => {
label={t("helpDialog.movePageLeftRight")}
shortcuts={["Shift+PgUp/PgDn"]}
/>
-