From 1d817c8e0fad6608114c270c35658bdfc9f813eb Mon Sep 17 00:00:00 2001 From: Jeff Emmett <46964190+Jeff-Emmett@users.noreply.github.com> Date: Wed, 27 Nov 2024 13:24:11 +0700 Subject: [PATCH] add all function shortcuts to contextmenu --- src/ui-overrides.tsx | 114 +++++++++++++++++++++++++++---------------- 1 file changed, 73 insertions(+), 41 deletions(-) diff --git a/src/ui-overrides.tsx b/src/ui-overrides.tsx index cd918e6..6e6a6c1 100644 --- a/src/ui-overrides.tsx +++ b/src/ui-overrides.tsx @@ -365,47 +365,79 @@ export const components: TLComponents = { return ( - - zoomToSelection(editor)} - /> - copyLinkToCurrentView(editor)} - /> - revertCamera(editor)} - /> - {isFrame && ( - <> - copyFrameLink(editor, selectedShape.id)} - /> - zoomToSelection(editor)} - /> - - )} - + + {/* Camera Controls */} + zoomToSelection(editor)} + /> + copyLinkToCurrentView(editor)} + /> + revertCamera(editor)} + /> + + {/* Shape Creation Tools */} + { + editor.setCurrentTool('VideoChat'); + }} + /> + { + editor.setCurrentTool('ChatBox'); + }} + /> + { + editor.setCurrentTool('Embed'); + }} + /> + + Frame-specific actions + {isFrame && ( + <> + copyFrameLink(editor, selectedShape.id)} + /> + zoomToSelection(editor)} + /> + + )} + ) },