[BUG] Keyboard number keys (1, 2, 3) not responding in tool approval dialogs on Windows

Resolved 💬 3 comments Opened Oct 24, 2025 by sebastian1430 Closed Jan 12, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Bug Report: Keyboard Number Keys Not Working in Approval Dialogs

Title: [BUG] Keyboard number keys (1, 2, 3) not responding in tool approval dialogs on Windows

Issue Summary

When Claude Code presents approval dialogs for tool usage (WebSearch, Bash, etc.), the keyboard number keys (1, 2, 3) that should select the options are not being recognized. Users must click with the mouse instead.

Steps to Reproduce

  1. Open Claude Code in VSCode on Windows
  2. Ask Claude to perform an action that requires approval (e.g., "search for updates" or run a bash command not in allowlist)
  3. When the approval dialog appears with numbered options like:
  • 1. Allow
  • 2. Deny
  • 3. Other options
  1. Press the "1" key on the keyboard to select option 1
  2. Expected: Option 1 is selected and the tool proceeds
  3. Actual: Nothing happens - keyboard input is not recognized

Environment

  • OS: Windows 11 (win32)
  • VSCode Version: 1.105.1
  • Claude Code Version: 2.0.26
  • Working Directory: d:\NLP

Current Behavior

The approval dialog shows numbered options but does not respond to keyboard number key presses (1, 2, 3, etc.). The dialog appears to be waiting for input but keystrokes are not being captured or processed.

Expected Behavior

Pressing the number key corresponding to an option should select that option, just like clicking it with the mouse does.

Workaround

Using mouse click to select options in the dialog works correctly.

Impact

  • Forces users to switch from keyboard to mouse, breaking workflow
  • Particularly problematic for keyboard-focused users
  • Slows down approval process

Related Issues

  • Similar to #7757 (input unresponsiveness on Windows) but specifically about approval dialog number keys
  • Related to #511 (Escape key issues during option selection on macOS - now fixed)
  • Related to #7693 (general Windows input issues - marked as duplicate)

Additional Context

The issue occurs consistently across all approval dialogs. The dialog itself appears correctly and mouse interaction works, suggesting this is specifically a keyboard event handling issue for the approval UI component.

---

To submit this bug report:
Go to: https://github.com/anthropics/claude-code/issues/new
Copy and paste the content above

What Should Happen?

Please fix this so we all can select options with keyboard input

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code in VSCode on Windows
  2. Ask Claude to perform an action that requires approval (e.g., "search for X" or run a bash command)
  3. When the approval dialog appears with numbered options like:

Allow
Deny
Other options

  1. Press the "1" key on the keyboard to select option 1
  2. Expected: Option 1 is selected
  3. Actual: Nothing happens - keyboard input is not recognized

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.0.26

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗