claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Promt input delete whole text by Ctrl+Backspace and do not support Ctrl+Arrow navigation with Japanese, Arabic, and Korean lang

Open it-sha opened this issue 1 month ago • 4 comments

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?

When entering prompts in Japanese, Arabic, and Korean languages, word-based keyboard shortcuts don't work correctly:

Ctrl+Backspace - deletes the entire text line instead of just the last word Ctrl+← / Ctrl+→ - jumps to the beginning/end of the entire line instead of moving between words

With Latin characters, both shortcuts work correctly:

Ctrl+Backspace deletes only the last word Ctrl+Arrow keys navigate word by word

Expected behavior:

Ctrl+Backspace should delete only the last word Ctrl+Arrow keys should navigate between words

Actual behavior:

Ctrl+Backspace deletes the entire text line Ctrl+Arrow keys jump to line start/end

What Should Happen?

Ctrl+Backspace should delete only the last word Ctrl+Arrow keys should navigate between words

Error Messages/Logs


Steps to Reproduce

  1. Open CC
  2. Paste 今日はいい天気ですね الجو جميل اليوم 오늘 날씨가 참 좋네요 (this is the text in Japanese, Arabic and Korean with spaces)
  3. Try to use Ctrl+Backspace to delete the last word and Ctrl+Arrow to move the cursor

Claude Model

None

Is this a regression?

No, this never worked.

Last Working Version

No response

Claude Code Version

2.0.28

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Bash

Additional Information

Probably it happens for all kinds of non-Latin chars Also looks like it's NOT only for Windows

it-sha avatar Oct 29 '25 07:10 it-sha

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3015
  2. https://github.com/anthropics/claude-code/issues/4456
  3. https://github.com/anthropics/claude-code/issues/8398

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Oct 29 '25 07:10 github-actions[bot]

Probably it happens for all kinds of non-Latin chars Also looks like it's NOT only for Windows

it-sha avatar Oct 29 '25 07:10 it-sha

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 09 '25 10:12 github-actions[bot]

This issue still remains. For example, with CC v2.0.59 under WSL installed by npm: Type in Ukrainian "Доброго ранку", press Ctrl+Backspace. The whole text is deleted instead of one word

it-sha avatar Dec 09 '25 10:12 it-sha