Answer: Your mod never reads the keyboard itself; Claude Code decides which control a key is for and runs that control's callback, and apart from a digit hotkey on the band or an action binding, this happens only while your pane or band has keyboard focus. To set a hotkey, give a Button a hotkey of one digit or one lowercase letter (e.g. hotkey: 'a'), and to choose the first focus when the pane opens, add autoFocus: true to a control. Status: Confirmed Entry: tool/claude-code/features/mod-keyboard-focus-hotkeys Revision: 3 Digest: sha256:72c4797a409aac3a (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:15Z Last changed: 2026-11-20T12:23:45Z (VS Code buttons: — → buttons have no hotkeys) Last verified: 2026-11-20T12:23:45Z Next check: 2026-11-21T12:23:45Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of keyboard handling | Your mod never reads the keyboard itself. | [1] | 2026-11-20 focus requirement | that happens only while your pane or band has keyboard focus | [1] | 2026-11-20 hotkey prop | hotkey: 'a' | [1] | 2026-11-20 autoFocus prop | autoFocus: true | [1] | 2026-11-20 focus via command | focus: true | [1] | 2026-11-20 focus via keys | Ctrl+X then Tab | [1] | 2026-11-20 Esc behavior | Returns keyboard focus to the prompt. | [1] | 2026-11-20 VS Code buttons | buttons have no hotkeys | [1] | 2026-11-20 Sources: [1] Anthropic. "Draw in the interface with a mod". https://code.claude.com/docs/en/plugins/mods/interface.md Role: primary. Accessed: 2026-11-20T12:23:45Z Quote: "Your mod never reads the keyboard itself." (Supports: keyboard handling) Quote: "that happens only while your pane or band has keyboard focus" (Supports: focus requirement) Quote: "give it a `hotkey` of one digit or one lowercase letter, as in `hotkey: 'a'`" (Supports: hotkey prop) Quote: "to choose which control has the focus when the pane opens, add `autoFocus: true` to it" (Supports: autoFocus prop) Quote: "Your mod opens it with `focus: true` from a command or a press" (Supports: focus via command) Quote: "The user presses Ctrl+X then Tab" (Supports: focus via keys) Quote: "Esc | Returns keyboard focus to the prompt." (Supports: Esc behavior) Quote: "buttons have no hotkeys: the user clicks a button or presses Enter on it, and types into fields" (Supports: VS Code buttons) Published: 2026-11-20T03:28:15Z Snapshot SHA-256: 5203311695590ed2a1ee08b0eba3b73e7b0c47ccb411106942748b7b15260a05 (captured 2026-11-20T12:23:44Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:23:45Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:23:45Z Last attempt: 2026-11-20T12:23:45Z Notes and limitations: Extracted automatically from a single official source (section "Respond to presses and typing"). Related: https://latestn.com/tool/claude-code/features/mod-markdown-element How do I display Markdown text in a Claude Code mod interface? https://latestn.com/tool/claude-code/features/mod-render-sites Where can a Claude Code mod draw its interface, such as a pane, band above the prompt, or transcript row? https://latestn.com/tool/claude-code/features/mod-required-files What files does a Claude Code mod need in its plugin directory? https://latestn.com/tool/claude-code/features/mobile-limitations What are the limitations of using Claude Code on mobile? https://latestn.com/tool/claude-code/features/mod-code-diff-element How do I show a code diff in a Claude Code mod interface? https://latestn.com/tool/claude-code/features/mod-image-in-tmux How do I draw an image inside tmux in a Claude Code mod? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:23:45Z | changed | VS Code buttons: — → buttons have no hotkeys | [1] 2026-11-20T12:23:45Z | changed | focus via keys: — → Ctrl+X then Tab | [1] 2026-11-20T12:23:45Z | changed | focus via command: — → focus: true | [1] 2026-11-20T12:23:45Z | changed | autoFocus prop: — → autoFocus: true | [1] 2026-11-20T12:23:45Z | changed | hotkey prop: — → hotkey: 'a' | [1] 2026-11-20T12:23:45Z | changed | focus requirement: — → that happens only while your pane or band has keyboard focus | [1] 2026-11-20T12:23:45Z | changed | keyboard handling: — → Your mod never reads the keyboard itself. | [1] 2026-11-20T12:23:45Z | changed | Tab and arrow keys: A mod can't bind Tab or the arrow keys to anything else → — | [1] 2026-11-20T12:23:45Z | changed | VS Code extension buttons: buttons have no hotkeys → — | [1] 2026-11-20T12:23:45Z | changed | AutoFocus prop: add `autoFocus: true` to it → — | [1] 2026-11-20T12:23:45Z | changed | Hotkey example: hotkey: 'a' → — | [1] 2026-11-20T12:23:45Z | changed | Hotkey prop: give it a `hotkey` of one digit or one lowercase letter → — | [1] 2026-11-20T12:23:45Z | changed | Focus requirement: only while your pane or band has keyboard focus → — | [1] 2026-11-20T12:23:45Z | changed | Keyboard handling: Your mod never reads the keyboard itself. → — | [1] 2026-11-14T12:19:32Z | changed | Tab and arrow keys: — → A mod can't bind Tab or the arrow keys to anything else | [1] 2026-11-14T12:19:32Z | changed | VS Code extension buttons: — → buttons have no hotkeys | [1] 2026-11-14T12:19:32Z | changed | AutoFocus prop: — → add `autoFocus: true` to it | [1] 2026-11-14T12:19:32Z | changed | Hotkey example: — → hotkey: 'a' | [1] 2026-11-14T12:19:32Z | changed | Hotkey prop: — → give it a `hotkey` of one digit or one lowercase letter | [1] 2026-11-14T12:19:32Z | changed | Focus requirement: — → only while your pane or band has keyboard focus | [1] 2026-11-14T12:19:32Z | changed | Keyboard handling: — → Your mod never reads the keyboard itself. | [1] 2026-11-14T12:19:32Z | changed | VS Code hotkeys: buttons have no hotkeys → — | [1] 2026-11-14T12:19:32Z | changed | Esc behavior: Returns keyboard focus to the prompt → Returns keyboard focus to the prompt. | [1] 2026-11-14T12:19:32Z | changed | focus via keys: Ctrl+X then Tab → — | [1] 2026-11-14T12:19:32Z | changed | focus via command: focus: true → — | [1] 2026-11-14T12:19:32Z | changed | autoFocus: autoFocus: true → — | [1] 2026-11-14T12:19:32Z | changed | hotkey format: one digit or one lowercase letter → — | [1] 2026-11-14T12:19:32Z | changed | focus requirement: only while your pane or band has keyboard focus → — | [1] 2026-11-14T12:19:32Z | changed | keyboard handling: Your mod never reads the keyboard itself → — | [1] 2026-11-13T03:05:15Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/features/mod-keyboard-focus-hotkeys/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/features/mod-keyboard-focus-hotkeys POST: https://latestn.com/dispute/tool/claude-code/features/mod-keyboard-focus-hotkeys with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/features/mod-keyboard-focus-hotkeys?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I handle keyboard focus and hotkeys for controls in a Claude Code mod pane? Revision 3, last verified 2026-11-20T12:23:45Z. https://latestn.com/tool/claude-code/features/mod-keyboard-focus-hotkeys (accessed 2026-11-21T10:00:24Z). @misc{LatestN_tool_claude_code_features_mod_keyboard_focus_hotkeys_r3, title = {How do I handle keyboard focus and hotkeys for controls in a Claude Code mod pane?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/features/mod-keyboard-focus-hotkeys}}, note = {Revision 3; digest sha256:72c4797a409aac3a; last verified 2026-11-20T12:23:45Z; accessed 2026-11-21T10:00:24Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/features/mod-keyboard-focus-hotkeys