fix: 修复 login 面板的左右切换能力

This commit is contained in:
claude-code-best
2026-04-06 11:23:49 +08:00
parent 258cc720f4
commit 3923af4834
2 changed files with 19 additions and 9 deletions

View File

@@ -709,7 +709,7 @@ function OAuthStatusMessage({
setInputCursorOffset((displayValues[FIELDS[idx + 1]!] ?? '').length)
}
},
{ context: 'Tabs' },
{ context: 'FormField' },
)
useKeybinding(
'tabs:previous',
@@ -721,7 +721,7 @@ function OAuthStatusMessage({
setInputCursorOffset((displayValues[FIELDS[idx - 1]!] ?? '').length)
}
},
{ context: 'Tabs' },
{ context: 'FormField' },
)
useKeybinding(
'confirm:no',
@@ -782,7 +782,7 @@ function OAuthStatusMessage({
{renderRow('opus_model', 'Opus ')}
</Box>
<Text dimColor>
Tab to switch · Enter on last field to save · Esc to go back
/Tab to switch · Enter on last field to save · Esc to go back
</Text>
</Box>
)
@@ -916,7 +916,7 @@ function OAuthStatusMessage({
)
}
},
{ context: 'Tabs' },
{ context: 'FormField' },
)
useKeybinding(
'tabs:previous',
@@ -932,7 +932,7 @@ function OAuthStatusMessage({
)
}
},
{ context: 'Tabs' },
{ context: 'FormField' },
)
useKeybinding(
'confirm:no',
@@ -997,7 +997,7 @@ function OAuthStatusMessage({
{renderOpenAIRow('opus_model', 'Opus ')}
</Box>
<Text dimColor>
Tab to switch · Enter on last field to save · Esc to go back
/Tab to switch · Enter on last field to save · Esc to go back
</Text>
</Box>
)
@@ -1148,7 +1148,7 @@ function OAuthStatusMessage({
)
}
},
{ context: 'Tabs' },
{ context: 'FormField' },
)
useKeybinding(
'tabs:previous',
@@ -1164,7 +1164,7 @@ function OAuthStatusMessage({
)
}
},
{ context: 'Tabs' },
{ context: 'FormField' },
)
useKeybinding(
'confirm:no',
@@ -1229,7 +1229,7 @@ function OAuthStatusMessage({
{renderGeminiRow('opus_model', 'Opus ')}
</Box>
<Text dimColor>
Tab to switch · Enter on last field to save · Esc to go back
/Tab to switch · Enter on last field to save · Esc to go back
</Text>
</Box>
)

View File

@@ -147,6 +147,16 @@ export const DEFAULT_BINDINGS: KeybindingBlock[] = [
'ctrl+d': 'permission:toggleDebug',
},
},
{
context: 'FormField',
bindings: {
// Form field vertical navigation (login/setup panels)
tab: 'tabs:next',
'shift+tab': 'tabs:previous',
up: 'tabs:previous',
down: 'tabs:next',
},
},
{
context: 'Tabs',
bindings: {