diff options
author | bobzel <zzzman@gmail.com> | 2020-10-01 20:31:39 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-01 20:31:39 -0400 |
commit | 266590937d3fda5dd96729edaa7c9bfac42370d9 (patch) | |
tree | 39a0315ff280757c8e07fd4e29a49a9d5e251efd /src/client/views/GlobalKeyHandler.ts | |
parent | ca64e0257cc4dd43e386c17b3d8b7b30747a7d9f (diff) |
major performance fix by adding a SharingDocument to the user's DB account so that inquiring the users' UserDoc (and everything it referecens) is no longer necessary.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index 1b2395423..2ea1c464f 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -55,7 +55,8 @@ export class KeyManager { }); public handle = action(async (e: KeyboardEvent) => { - if (e.key.toLowerCase() === "shift") KeyManager.Instance.ShiftPressed = true; + if (e.key.toLowerCase() === "shift" && e.ctrlKey && e.altKey) KeyManager.Instance.ShiftPressed = true; + if (!Doc.UserDoc().noviceMode && e.key.toLocaleLowerCase() === "shift") DocServer.PRINT_CACHE(); const keyname = e.key && e.key.toLowerCase(); this.handleGreedy(keyname); |