From 763536c9b7f72c77506e6638c5e3559c2187cc8c Mon Sep 17 00:00:00 2001 From: madelinegr Date: Fri, 7 Jun 2019 16:17:28 -0400 Subject: still in progress --- src/client/views/MainView.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') 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 { return FieldValue(Cast(CurrentUserUtils.UserDocument.activeWorkspace, Doc)); } + @computed private get mainFreeform(): Opt { + let docs = DocListCast(this.mainContainer!.data); + return (docs && docs.length > 1) ? docs[1] : undefined; + } + private globalDisplayFlags = observable({ + jumpToVisible: false + }); private set mainContainer(doc: Opt) { 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(); -- cgit v1.2.3-70-g09d2