mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-23 08:45:50 +00:00
fix: 修复 login 面板的左右切换能力
This commit is contained in:
@@ -709,7 +709,7 @@ function OAuthStatusMessage({
|
|||||||
setInputCursorOffset((displayValues[FIELDS[idx + 1]!] ?? '').length)
|
setInputCursorOffset((displayValues[FIELDS[idx + 1]!] ?? '').length)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ context: 'Tabs' },
|
{ context: 'FormField' },
|
||||||
)
|
)
|
||||||
useKeybinding(
|
useKeybinding(
|
||||||
'tabs:previous',
|
'tabs:previous',
|
||||||
@@ -721,7 +721,7 @@ function OAuthStatusMessage({
|
|||||||
setInputCursorOffset((displayValues[FIELDS[idx - 1]!] ?? '').length)
|
setInputCursorOffset((displayValues[FIELDS[idx - 1]!] ?? '').length)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ context: 'Tabs' },
|
{ context: 'FormField' },
|
||||||
)
|
)
|
||||||
useKeybinding(
|
useKeybinding(
|
||||||
'confirm:no',
|
'confirm:no',
|
||||||
@@ -782,7 +782,7 @@ function OAuthStatusMessage({
|
|||||||
{renderRow('opus_model', 'Opus ')}
|
{renderRow('opus_model', 'Opus ')}
|
||||||
</Box>
|
</Box>
|
||||||
<Text dimColor>
|
<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>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
@@ -916,7 +916,7 @@ function OAuthStatusMessage({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ context: 'Tabs' },
|
{ context: 'FormField' },
|
||||||
)
|
)
|
||||||
useKeybinding(
|
useKeybinding(
|
||||||
'tabs:previous',
|
'tabs:previous',
|
||||||
@@ -932,7 +932,7 @@ function OAuthStatusMessage({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ context: 'Tabs' },
|
{ context: 'FormField' },
|
||||||
)
|
)
|
||||||
useKeybinding(
|
useKeybinding(
|
||||||
'confirm:no',
|
'confirm:no',
|
||||||
@@ -997,7 +997,7 @@ function OAuthStatusMessage({
|
|||||||
{renderOpenAIRow('opus_model', 'Opus ')}
|
{renderOpenAIRow('opus_model', 'Opus ')}
|
||||||
</Box>
|
</Box>
|
||||||
<Text dimColor>
|
<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>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
@@ -1148,7 +1148,7 @@ function OAuthStatusMessage({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ context: 'Tabs' },
|
{ context: 'FormField' },
|
||||||
)
|
)
|
||||||
useKeybinding(
|
useKeybinding(
|
||||||
'tabs:previous',
|
'tabs:previous',
|
||||||
@@ -1164,7 +1164,7 @@ function OAuthStatusMessage({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ context: 'Tabs' },
|
{ context: 'FormField' },
|
||||||
)
|
)
|
||||||
useKeybinding(
|
useKeybinding(
|
||||||
'confirm:no',
|
'confirm:no',
|
||||||
@@ -1229,7 +1229,7 @@ function OAuthStatusMessage({
|
|||||||
{renderGeminiRow('opus_model', 'Opus ')}
|
{renderGeminiRow('opus_model', 'Opus ')}
|
||||||
</Box>
|
</Box>
|
||||||
<Text dimColor>
|
<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>
|
</Text>
|
||||||
</Box>
|
</Box>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -147,6 +147,16 @@ export const DEFAULT_BINDINGS: KeybindingBlock[] = [
|
|||||||
'ctrl+d': 'permission:toggleDebug',
|
'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',
|
context: 'Tabs',
|
||||||
bindings: {
|
bindings: {
|
||||||
|
|||||||
Reference in New Issue
Block a user