From 4a3df1ec90eb9536e74b54d292d75a1442e4e58e Mon Sep 17 00:00:00 2001 From: huaiyuWangh <34158348+huaiyuWangh@users.noreply.github.com> Date: Thu, 26 Mar 2026 21:43:44 +0800 Subject: [PATCH] fix(dialog): use valid key binding name for OAuth success state (#2491) Replace invalid "finish" key name with "enter" in the OAuth success state key binding. "finish" is not a valid key name in the key package, while "enter" is consistent with other key bindings in the codebase and matches the help text shown to users. --- internal/ui/dialog/oauth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/ui/dialog/oauth.go b/internal/ui/dialog/oauth.go index 2803070381e65bd0380a8ddab5f256481c117c15..dc073f41e21dde1d15e41ef59aec98b8161e00ba 100644 --- a/internal/ui/dialog/oauth.go +++ b/internal/ui/dialog/oauth.go @@ -332,7 +332,7 @@ func (m *OAuth) ShortHelp() []key.Binding { case OAuthStateSuccess: return []key.Binding{ key.NewBinding( - key.WithKeys("finish", "ctrl+y", "esc"), + key.WithKeys("enter", "ctrl+y", "esc"), key.WithHelp("enter", "finish"), ), }