Customize keyboard shortcuts changedkeybindings
Nearest release: v2.1.282, published 7 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 24 Sep 2026 23:10 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 24 Sep 2026 23:37 UTC.
Upstream edited
Recorded here
Lines+14added
Lines−0removed
From line
164
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits25to this page, all time
## Text fields
The whole hunk
from line 164, old and new numbered
/
from line 164
164164}
165165```
166166
167With these bindings, `y` and `n` still type as letters while a [text field](#text-fields) has focus.
168
167169Before v2.1.280, `y` was also bound to `confirm:yes` and `n` to `confirm:no` by default. If you created your `keybindings.json` with `/keybindings` before v2.1.280, the file lists both bindings and they stay in effect until you delete those two lines.
168170
169171### Permission actions
from line 557
555557| Ctrl+B | tmux prefix (press twice to send) |
556558| Ctrl+A | GNU screen prefix |
557559| Ctrl+Z | Unix process suspend (SIGTSTP) |
560
561## Text fields
562
563If you bind a bare letter, digit, or Space, you can still type that character in a text field inside a dialog or panel. One such field is the `Other` answer to a question Claude asks. While the field has focus, a printable key you press without Ctrl, Alt, or Cmd goes to the field, and Claude Code doesn't match it against your bindings.
564
565These keys still run their bindings while the field has focus:
566
567* Keys that don't type a character, such as Enter, Escape, Tab, and the arrow keys
568* Any key pressed with Ctrl, Alt, or Cmd
569* The second keystroke of a [chord](#chords) already in progress
570
571At the main prompt, Claude Code matches every key against the active contexts, such as `Chat`, and types the key only when no binding takes it.
558572
559573## Vim mode interaction
560574
No line in this hunk matches that.