summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context_config.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-28 20:44:36 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commita90b6efded49abcfa2516db794d7875b0396f558 (patch)
treead9c3738830437064ada223f0978dab1d726b479 /pkg/gui/context_config.go
parentfa8571e1f4c349e401542285ea238acdbd9d17ec (diff)
start refactoring gui
Diffstat (limited to 'pkg/gui/context_config.go')
-rw-r--r--pkg/gui/context_config.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/context_config.go b/pkg/gui/context_config.go
index f567f5a5c..e884d32bd 100644
--- a/pkg/gui/context_config.go
+++ b/pkg/gui/context_config.go
@@ -174,12 +174,13 @@ func (gui *Gui) contextTree() ContextTree {
OnGetOptionsMap: gui.getMergingOptions,
},
Credentials: &BasicContext{
- OnFocus: OnFocusWrapper(gui.handleCredentialsViewFocused),
+ OnFocus: OnFocusWrapper(gui.handleAskFocused),
Kind: PERSISTENT_POPUP,
ViewName: "credentials",
Key: CREDENTIALS_CONTEXT_KEY,
},
Confirmation: &BasicContext{
+ OnFocus: OnFocusWrapper(gui.handleAskFocused),
Kind: TEMPORARY_POPUP,
ViewName: "confirmation",
Key: CONFIRMATION_CONTEXT_KEY,