Skip to content

Windows raw mode: keep ENABLE_PROCESSED_INPUT for IME support #2613

@Hmbown

Description

@Hmbown

crossterm::enable_raw_mode() on Windows disables ENABLE_PROCESSED_INPUT, which prevents the Windows IME from processing keystrokes. Once the IME enters composition mode, all subsequent keystrokes are swallowed until Escape resets the composition. This is the root cause of #1835 (Windows IME deadlock). The fix is to keep ENABLE_PROCESSED_INPUT enabled or use a different raw-mode strategy on Windows.

Source: investigation of #1835 Windows IME deadlock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions