diff options
author | bobzel <zzzman@gmail.com> | 2020-08-24 18:37:46 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-24 18:37:46 -0400 |
commit | 69f94b19baa37a0a9114bc21710d2e09b49b638d (patch) | |
tree | f19e30107f0c2242de167b1179994cdfb45b6766 /src/client/views/nodes/DocumentView.tsx | |
parent | 2e4ab06f38323bba06a4d77c04da1507bac5657f (diff) |
removed treeViewOpen from sidebar panels since they don't need them now that the top level is hidden.
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 9ab2889e1..c8ac59bcd 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -322,13 +322,14 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu } } } else if (this.onClickHandler?.script && !StrCast(Doc.LayoutField(this.layoutDoc))?.includes("ScriptingBox")) { // bcz: hack? don't execute script if you're clicking on a scripting box itself + const shiftKey = e.shiftKey; const func = () => this.onClickHandler.script.run({ this: this.layoutDoc, self: this.rootDoc, scriptContext: this.props.scriptContext, thisContainer: this.props.ContainingCollectionDoc, documentView: this, - shiftKey: e.shiftKey + shiftKey }, console.log); const clickFunc = () => { if (!Doc.AreProtosEqual(this.props.Document, Doc.UserDoc()["dockedBtn-undo"] as Doc) && !Doc.AreProtosEqual(this.props.Document, Doc.UserDoc()["dockedBtn-redo"] as Doc)) { |