claude-code - 💡(How to fix) Fix [BUG] Issue: IME function keys (F7/F8) not passed through in Electron app

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Code Example

n/a
RAW_BUFFERClick to expand / collapse

Preflight Checklist

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

What's Wrong?

Issue: IME function keys (F7/F8) not passed through in Electron app When using Japanese IME on Windows, pressing F7 (katakana conversion) or F8 (half-width conversion) during text composition does not work in Claude Code desktop app. The Electron shell appears to capture these function keys before they reach the IME. Changing the IME shortcut keys to other keys does not help, as Electron captures function keys globally. Expected behavior: IME conversion keys should be passed through to the OS/IME during text input. Environment: Windows, Japanese IME, Claude Code desktop app (Electron)

What Should Happen?

Function keys F7 and F8 should be passed through to the Windows IME, allowing Japanese users to convert text to katakana (F7) or half-width characters (F8) during composition.

Error Messages/Logs

n/a

Steps to Reproduce

allway

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.113

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Other

Additional Information

Claude Code Desktop App

extent analysis

TL;DR

The issue can likely be resolved by modifying the Electron app to prevent it from capturing the F7 and F8 function keys, allowing them to be passed through to the Windows IME.

Guidance

  • Investigate the Electron app's keyboard event handling to identify where the F7 and F8 keys are being captured, and consider using the webContents.setIgnoreMouseEvents or webContents.addEventListener methods to allow these keys to be passed through to the OS.
  • Review the Electron documentation for keyboard event handling and IME support to ensure that the app is properly configured to work with Japanese IME on Windows.
  • Consider adding a custom keyboard shortcut handler to the Electron app to explicitly pass through the F7 and F8 keys to the IME during text composition.
  • Verify that the issue is specific to the Electron app and not a problem with the underlying Anthropic API or Claude Model.

Example

No code example is provided as the issue does not include specific code snippets, but the Electron documentation provides examples of how to handle keyboard events and IME input.

Notes

The issue is reported as a regression, indicating that it worked in a previous version, so comparing the current code with previous versions may help identify the cause of the problem.

Recommendation

Apply a workaround by modifying the Electron app's keyboard event handling to pass through the F7 and F8 keys to the Windows IME, as this is likely to be a more straightforward solution than attempting to upgrade to a fixed version (which may not be available).

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Issue: IME function keys (F7/F8) not passed through in Electron app