diff options
author | madelinegr <monika_hedman@brown.edu> | 2019-06-07 16:17:28 -0400 |
---|---|---|
committer | madelinegr <monika_hedman@brown.edu> | 2019-06-07 16:17:28 -0400 |
commit | 763536c9b7f72c77506e6638c5e3559c2187cc8c (patch) | |
tree | fa4c9bfb3150777195cc7b20f1642f1311851acf /src/client/views/MainView.tsx | |
parent | 30034bbcfac77466ff74bca97d40771ccd6a4b1c (diff) |
still in progress
Diffstat (limited to 'src/client/views/MainView.tsx')
-rw-r--r-- | src/client/views/MainView.tsx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/views/MainView.tsx b/src/client/views/MainView.tsx index c0f6e01e2..62a0af451 100644 --- a/src/client/views/MainView.tsx +++ b/src/client/views/MainView.tsx @@ -43,6 +43,13 @@ export class MainView extends React.Component { @computed private get mainContainer(): Opt<Doc> { return FieldValue(Cast(CurrentUserUtils.UserDocument.activeWorkspace, Doc)); } + @computed private get mainFreeform(): Opt<Doc> { + let docs = DocListCast(this.mainContainer!.data); + return (docs && docs.length > 1) ? docs[1] : undefined; + } + private globalDisplayFlags = observable({ + jumpToVisible: false + }); private set mainContainer(doc: Opt<Doc>) { if (doc) { if (!("presentationView" in doc)) { @@ -309,6 +316,8 @@ export class MainView extends React.Component { globalKeyHandler = (e: KeyboardEvent) => { if (e.key === "Control" || !e.ctrlKey) return; + console.log("keyevent"); + e.preventDefault(); e.stopPropagation(); |