diff options
author | madelinegr <mgriswold99@gmail.com> | 2019-03-11 20:03:32 -0400 |
---|---|---|
committer | madelinegr <mgriswold99@gmail.com> | 2019-03-11 20:03:32 -0400 |
commit | c584f6717f44beca7fbf6862d154a2fc532b2e67 (patch) | |
tree | 0a4a6eff653b733892b4f87e5d3e7f1e83d147d2 /src/client/views/nodes/DocumentView.tsx | |
parent | e502c8fd15951e8b724ec98bef32294e4a6faa5f (diff) |
click to navigate to doc
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 3ce4aab6f..4d471a162 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -279,6 +279,10 @@ export class DocumentView extends React.Component<DocumentViewProps> { SelectionManager.SelectDoc(this, e.ctrlKey); } + focus = () => { + this.props.focus(this.props.Document); + } + get mainContent() { return <JsxParser components={{ FormattedTextBox, ImageBox, CollectionFreeFormView, CollectionDockingView, CollectionSchemaView, CollectionView, CollectionPDFView, WebBox, KeyValueBox, VideoBox, AudioBox, PDFBox }} |