diff options
author | bobzel <zzzman@gmail.com> | 2023-07-07 13:36:21 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-07-07 13:36:21 -0400 |
commit | fa38dbe06d6ddb5f4499b759459a24d2b3c111e8 (patch) | |
tree | 64020a79fcc4eedf77d2bddfd2c1cb048ed077d9 /src/client/views/GlobalKeyHandler.ts | |
parent | 53fe9a1e2503d8112ddb2f2101f46d5a2e23c791 (diff) |
a bunch of fixes to simplify collaboration and make it work better.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index 47dcdd2e4..347c40c18 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -285,13 +285,17 @@ export class KeyManager { preventDefault = false; break; case 'y': - SelectionManager.DeselectAll(); - UndoManager.Redo(); + if (Doc.ActivePage !== 'home') { + SelectionManager.DeselectAll(); + UndoManager.Redo(); + } stopPropagation = false; break; case 'z': - SelectionManager.DeselectAll(); - UndoManager.Undo(); + if (Doc.ActivePage !== 'home') { + SelectionManager.DeselectAll(); + UndoManager.Undo(); + } stopPropagation = false; break; case 'a': |