From a40b276c3f6db4112e8c13f7bc47cf5e63772ef2 Mon Sep 17 00:00:00 2001 From: bobzel Date: Thu, 13 Oct 2022 13:17:31 -0400 Subject: fixed copying text when a document is selected. fixed tree view shifting when editing a line that is too long. --- src/client/views/GlobalKeyHandler.ts | 2 +- src/client/views/collections/TreeView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index 50518eec1..8e9c18cf3 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -307,7 +307,7 @@ export class KeyManager { } break; case 'c': - if (!AnchorMenu.Instance.Active && DocumentDecorations.Instance.Bounds.r - DocumentDecorations.Instance.Bounds.x > 2) { + if ((document.activeElement as any)?.type !== 'text' && !AnchorMenu.Instance.Active && DocumentDecorations.Instance.Bounds.r - DocumentDecorations.Instance.Bounds.x > 2) { const bds = DocumentDecorations.Instance.Bounds; const pt = SelectionManager.Views()[0] .props.ScreenToLocalTransform() diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx index 14563f990..409b615f4 100644 --- a/src/client/views/collections/TreeView.tsx +++ b/src/client/views/collections/TreeView.tsx @@ -629,7 +629,7 @@ export class TreeView extends React.Component { } else if (this.treeViewExpandedView === 'fields') { return ( ); } -- cgit v1.2.3-70-g09d2