diff options
author | bobzel <zzzman@gmail.com> | 2021-09-09 22:49:13 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-09 22:49:13 -0400 |
commit | 9d177851ecaaea1a89ac9b7de1cec16368603eaa (patch) | |
tree | 4000ee3540ebb84db85ffcfb8e09e43ec0fe92fc /src/client/views/GlobalKeyHandler.ts | |
parent | 3ae79d3742030a255855d0c9c4ba8345f1cc73dd (diff) |
added SelectionManager.Docs() to avoid having to dereference props to get at the seelcted Doc. this was causing a cycle in menu items when selected. fixed sizing of filterBox. enabled showing titles for VID,COL,and IMG in addition to RTF.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index 0127d3080..f66c9c788 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -229,8 +229,8 @@ export class KeyManager { } break; case "o": - const target = SelectionManager.Views()[0]; - target && CollectionDockingView.OpenFullScreen(target.props.Document); + const target = SelectionManager.Docs().lastElement(); + target && CollectionDockingView.OpenFullScreen(target); break; case "r": preventDefault = false; |