summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-08-07 19:13:19 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-08-07 19:20:02 +1000
commite4e04cfa8ff031b2d043b2ae3b22faff10c3e574 (patch)
treef5344f5e8b122ad1bb66a9e9a57809d29fb72d8f /pkg/gui
parent2e7b935bfb14a5a621e94781933e898b3be0ce93 (diff)
fix hidden suggestions
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/context/suggestions_context.go11
-rw-r--r--pkg/gui/list_context_config.go5
2 files changed, 10 insertions, 6 deletions
diff --git a/pkg/gui/context/suggestions_context.go b/pkg/gui/context/suggestions_context.go
index bbf3014f5..4be86244a 100644
--- a/pkg/gui/context/suggestions_context.go
+++ b/pkg/gui/context/suggestions_context.go
@@ -29,11 +29,12 @@ func NewSuggestionsContext(
BasicViewModel: viewModel,
ListContextTrait: &ListContextTrait{
Context: NewSimpleContext(NewBaseContext(NewBaseContextOpts{
- View: view,
- WindowName: "suggestions",
- Key: SUGGESTIONS_CONTEXT_KEY,
- Kind: types.PERSISTENT_POPUP,
- Focusable: true,
+ View: view,
+ WindowName: "suggestions",
+ Key: SUGGESTIONS_CONTEXT_KEY,
+ Kind: types.PERSISTENT_POPUP,
+ Focusable: true,
+ HasUncontrolledBounds: true,
}), ContextCallbackOpts{
OnFocus: onFocus,
OnFocusLost: onFocusLost,
diff --git a/pkg/gui/list_context_config.go b/pkg/gui/list_context_config.go
index 2b72714c5..d463c2ac5 100644
--- a/pkg/gui/list_context_config.go
+++ b/pkg/gui/list_context_config.go
@@ -270,7 +270,10 @@ func (gui *Gui) suggestionsListContext() *context.SuggestionsContext {
},
nil,
nil,
- nil,
+ func(types.OnFocusLostOpts) error {
+ gui.deactivateConfirmationPrompt()
+ return nil
+ },
gui.c,
)
}