From 6f4541dcbef07c817d8b58714fa52b82d6c8f470 Mon Sep 17 00:00:00 2001 From: Konstantinos Kaloutas Date: Wed, 31 Aug 2022 16:27:47 +0300 Subject: [PATCH] style: context menu component --- .../src/components/ContextMenu/ContextMenu.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tldraw/apps/tldraw-logseq/src/components/ContextMenu/ContextMenu.tsx b/tldraw/apps/tldraw-logseq/src/components/ContextMenu/ContextMenu.tsx index 13c98de6d2..f8e2a29c84 100644 --- a/tldraw/apps/tldraw-logseq/src/components/ContextMenu/ContextMenu.tsx +++ b/tldraw/apps/tldraw-logseq/src/components/ContextMenu/ContextMenu.tsx @@ -30,7 +30,7 @@ export const ContextMenu = observer(function ContextMenu({ app.transition('select')} + onEscapeKeyDown={() => app.transition('select')} collisionBoundary={collisionRef.current} asChild tabIndex={-1} @@ -38,7 +38,10 @@ export const ContextMenu = observer(function ContextMenu({
{app.selectedShapes?.size > 0 && ( <> - runAndTransition(app.copy)}> + runAndTransition(app.copy)} + > Copy
@@ -48,7 +51,10 @@ export const ContextMenu = observer(function ContextMenu({ )} - runAndTransition(app.paste)}> + runAndTransition(app.paste)} + > Paste