diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-02 09:16:01 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-08-02 09:16:01 +1000 |
commit | c1c6e2fac24f8db618c8d895db272ca486b78300 (patch) | |
tree | fdd97a0ac1287f347e9ed4b0a2be3c579e7d47c8 /pkg | |
parent | 932b0b593ed3503da9004a4f1fb6b27a34dfb0df (diff) |
make exception for searching from menu
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/gui/context.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 89356d956..f08acec06 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -100,7 +100,8 @@ func (gui *Gui) pushContext(c types.Context, opts ...types.OnFocusOpts) error { // if top one is a temporary popup, we remove it. Ideally you'd be able to // escape back to previous temporary popups, but because we're currently reusing // views for this, you might not be able to get back to where you previously were. - if topContext.GetKind() == types.TEMPORARY_POPUP { + // The exception is when going to the search context e.g. for searching a menu. + if topContext.GetKind() == types.TEMPORARY_POPUP && c.GetKey() != context.SEARCH_CONTEXT_KEY { if err := gui.deactivateContext(topContext); err != nil { gui.State.ContextManager.Unlock() return err |