aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-10-13 13:17:31 -0400
committerbobzel <zzzman@gmail.com>2022-10-13 13:17:31 -0400
commita40b276c3f6db4112e8c13f7bc47cf5e63772ef2 (patch)
treecf852ca25a2f8130205184112251fdc94f8aa7a0 /src
parent6fcfb2a70c37c85c69b6341ff58948835185b46c (diff)
fixed copying text when a document is selected. fixed tree view shifting when editing a line that is too long.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/GlobalKeyHandler.ts2
-rw-r--r--src/client/views/collections/TreeView.tsx2
2 files changed, 2 insertions, 2 deletions
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<TreeViewProps> {
} else if (this.treeViewExpandedView === 'fields') {
return (
<ul key={this.doc[Id] + this.doc.title}>
- <div style={{ display: 'inline-block' }}>{this.expandedField}</div>
+ <div>{this.expandedField}</div>
</ul>
);
}