[BUG] Lock keys (Caps Lock, Num Lock) output raw escape sequences in input
Resolved 💬 3 comments Opened Mar 26, 2026 by MakkoAlex Closed Apr 18, 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?
Pressing Caps Lock inserts [57358u and Num Lock inserts a similar escape sequence as raw text. Happens in both VS Code panel and terminal. terminal.integrated.keyboard.enableKeyboardProtocol: false did not help. Windows 11, VS Code.
What Should Happen?
Lock/modifier keys (Caps Lock, Num Lock, Scroll Lock) should be silently ignored and not insert any text.
Error Messages/Logs
N/A
Steps to Reproduce
Steps to reproduce:
- Open VS Code on Windows 11
- Open Claude Code (either via the panel icon or by running claude in the terminal)
- Click into the input field
- Press Caps Lock or Num Lock
- Raw escape sequence like [57358u appears in the input
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude Code v2.1.84
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗