diff options
author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2021-08-17 21:34:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 21:34:17 -0400 |
commit | cf2ab7fe45c57720eeeeff64ed6f5b2b5d8fa40d (patch) | |
tree | a8c1236cf6d686dd1b197e11f7bbd6f24f8f89e2 /src/client/views/GlobalKeyHandler.ts | |
parent | 412ec3b38b2ee396b2709d824f02b0e417f5d967 (diff) | |
parent | 3b820202841a586506604db776e73a6cdc8d4015 (diff) |
Merge pull request #26 from brown-dash/search-david
Search david
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index 76eb4c142..0127d3080 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -27,7 +27,6 @@ import { LightboxView } from "./LightboxView"; import { MainView } from "./MainView"; import { DocumentLinksButton } from "./nodes/DocumentLinksButton"; import { AnchorMenu } from "./pdf/AnchorMenu"; -import { SearchBox } from "./search/SearchBox"; import { CurrentUserUtils } from "../util/CurrentUserUtils"; import { SettingsManager } from "../util/SettingsManager"; @@ -223,8 +222,11 @@ export class KeyManager { PromiseValue(Cast(Doc.UserDoc()["tabs-button-tools"], Doc)).then(pv => pv && (pv.onClick as ScriptField).script.run({ this: pv })); break; case "f": - SearchBox.Instance._searchFullDB = "My Stuff"; - SearchBox.Instance.enter(undefined); + const searchBtn = Doc.UserDoc().searchBtn as Doc; + + if (searchBtn) { + MainView.Instance.selectMenu(searchBtn); + } break; case "o": const target = SelectionManager.Views()[0]; |