[BUG] Shift+Space in Ghostty types literal "space" text instead of space character

Resolved 💬 2 comments Opened Jan 9, 2026 by joenap Closed Jan 9, 2026

Description

When pressing Shift+Space in the Claude Code input prompt, the literal text space is inserted instead of a space character.

Steps to Reproduce

  1. Run claude in Ghostty terminal
  2. In the input prompt, press Shift+Space
  3. Observe: the word space is typed into the input
  4. Expected: a space character should be inserted

Environment

  • Claude Code version: 2.1.2 (regression confirmed)
  • Working version: 2.0.70 (no issue)
  • Terminal: Ghostty 1.2.3 (Linux, GTK 4.14.5)
  • OS: Linux 6.8.0-90-generic

Additional Context

  • Pressing Shift+Space in a regular shell (cat) outputs a normal space character, confirming Ghostty sends the correct input
  • This appears to be a regression in how Claude Code handles the Kitty keyboard protocol
  • When Claude Code enables enhanced keyboard mode, it seems to be displaying the key name instead of inserting the character for Shift+Space
  • Occasionally see similar issues with escape sequences appearing in input (e.g., color codes appearing when typing certain words)

Workaround

Press Space without Shift (functionally equivalent for inserting a space).

View original on GitHub ↗

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