feat: add missing visual cue for closing dialogs with Esc key (#11386)

This commit is contained in:
JAYADITYA
2025-10-17 23:52:54 +05:30
committed by GitHub
parent 4a0fcd054b
commit 2b61ac532d
5 changed files with 10 additions and 6 deletions

View File

@@ -185,7 +185,9 @@ Logging in with Google... Please restart Gemini CLI to continue.
</Box>
)}
<Box marginTop={1}>
<Text color={theme.text.secondary}>(Use Enter to select)</Text>
<Text color={theme.text.secondary}>
(Use Enter to select, Esc to close)
</Text>
</Box>
<Box marginTop={1}>
<Text color={theme.text.primary}>

View File

@@ -157,7 +157,7 @@ export function EditorSettingsDialog({
<Box marginTop={1}>
<Text color={theme.text.secondary}>
(Use Enter to select, Tab to change focus)
(Use Enter to select, Tab to change focus, Esc to close)
</Text>
</Box>
</Box>

View File

@@ -114,7 +114,9 @@ export function PermissionsModifyTrustDialog({
initialIndex={initialIndex}
/>
<Box marginTop={1}>
<Text color={theme.text.secondary}>(Use Enter to select)</Text>
<Text color={theme.text.secondary}>
(Use Enter to select, Esc to close)
</Text>
</Box>
</Box>
{needsRestart && (

View File

@@ -275,7 +275,7 @@ def fibonacci(n):
<Box marginTop={1}>
<Text color={theme.text.secondary} wrap="truncate">
(Use Enter to {mode === 'theme' ? 'select' : 'apply scope'}, Tab to{' '}
{mode === 'theme' ? 'configure scope' : 'select theme'})
{mode === 'theme' ? 'configure scope' : 'select theme'}, Esc to close)
</Text>
</Box>
</Box>

View File

@@ -8,7 +8,7 @@ exports[`ThemeDialog Snapshots > should render correctly in scope selector mode
│ 2. Workspace Settings │
│ 3. System Settings │
│ │
│ (Use Enter to apply scope, Tab to select theme)
│ (Use Enter to apply scope, Tab to select theme, Esc to close)
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
`;
@@ -32,7 +32,7 @@ exports[`ThemeDialog Snapshots > should render correctly in theme selection mode
│ 12. Google Code Light └─────────────────────────────────────────────────┘ │
│ ▼ │
│ │
│ (Use Enter to select, Tab to configure scope)
│ (Use Enter to select, Tab to configure scope, Esc to close)
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯"
`;