aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-10-11 13:43:48 -0400
committerbob <bcz@cs.brown.edu>2019-10-11 13:43:48 -0400
commitd95d46e90851141bed17dd30c103be5d0e1e60ab (patch)
tree450276239c54de3900f5d793fdc2afb6a3a5cf4b /src/client/views/GlobalKeyHandler.ts
parent4aa9759d8eb2c4db5f572d60d85460f6c9c9116f (diff)
search fixes for pdfs
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index 6815ff926..557b3e366 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -163,6 +163,8 @@ export default class KeyManager {
}
break;
case "f":
+ stopPropagation = false;
+ preventDefault = false;
MainView.Instance.isSearchVisible = !MainView.Instance.isSearchVisible;
MainView.Instance.flyoutWidth = MainView.Instance.isSearchVisible ? 400 : 0;
PromiseValue(Cast(CurrentUserUtils.UserDocument.searchBox, Doc)).then(pv => pv && (pv.treeViewOpen = (MainView.Instance.flyoutWidth > 0)));