Skip to content

Commit 5a292ef

Browse files
committed
code updates
1 parent 4f2f1e7 commit 5a292ef

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

app/components/terminal/InputBox.tsx

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,7 @@ const NAV_KEYS: QuickKey[] = [
4444
{ label: "\u2192", key: "\x1b[C", title: "Cursor right" },
4545
];
4646

47-
// Extra terminal-only nav keys (not shown in editor mode)
48-
const NAV_EXTRAS: QuickKey[] = [
49-
{ label: "y", key: "y", title: "Yes" },
50-
{ label: "n", key: "n", title: "No" },
51-
{ label: "q", key: "q", title: "Quit (htop/less)" },
52-
];
53-
54-
// Less common nav keys (shown after extras)
47+
// Less common nav keys (shown after NAV_KEYS)
5548
const NAV_TAIL: QuickKey[] = [
5649
{ label: "Esc", key: "\x1b", title: "Escape" },
5750
{ label: "Tab", key: "\t", title: "Autocomplete" },
@@ -118,7 +111,6 @@ const CODE_COMMON_KEYS: QuickKey[] = [
118111
{ label: "Ctrl+C", key: "\x03", title: "Cancel / interrupt / quit" },
119112
{ label: "Ctrl+L", key: "\x0c", title: "Clear screen (Claude/Codex) / View logs (OpenCode)" },
120113
{ label: "Ctrl+G", key: "\x07", title: "Open external editor (Claude/Codex)" },
121-
{ label: "Esc", key: "\x1b", title: "Cancel generation / dismiss / go back" },
122114
{ label: "Esc Esc", key: "\x1b\x1b", title: "Rewind history (Claude) / Edit prev message (Codex)" },
123115
{ label: "y", key: "y", title: "Yes (approve)" },
124116
{ label: "n", key: "n", title: "No (deny)" },
@@ -163,6 +155,7 @@ const CLI_VENDORS: CliVendor[] = [
163155
{
164156
name: "codex",
165157
keys: [
158+
{ label: "Shift+Tab", key: "\x1b[Z", title: "Cycle approval modes" },
166159
{ label: "Ctrl+O", key: "\x0f", title: "Choose environment (cloud)" },
167160
],
168161
launch: [
@@ -1021,11 +1014,6 @@ export default function InputBox() {
10211014
{qk.label}
10221015
</button>
10231016
))}
1024-
{!isEditorMode && NAV_EXTRAS.map((qk) => (
1025-
<button key={qk.label} {...repeatProps(qk.key)} disabled={!activeSessionId} title={qk.title} className={`${keyBtn} text-[10px] px-1.5`}>
1026-
{qk.label}
1027-
</button>
1028-
))}
10291017
{NAV_TAIL.map((qk) => (
10301018
<button key={qk.label} {...repeatProps(qk.key)} disabled={!activeSessionId} title={qk.title} className={`${keyBtn} text-[10px] px-1.5`}>
10311019
{qk.label}

0 commit comments

Comments
 (0)