Japanese IME Enter key triggers submit+newline with custom keybindings on Ghostty

Resolved 💬 3 comments Opened Mar 30, 2026 by naoto-naka-safie Closed Apr 2, 2026

Description

When using custom keybindings (enter: chat:newline, meta+enter: chat:submit), pressing Enter to confirm Japanese IME (Input Method Editor) conversion triggers both a newline and submission, instead of just confirming the IME input.

Environment

  • OS: macOS (Darwin 25.4.0)
  • Terminal: Ghostty
  • Input Method: Japanese IME

Keybindings Configuration

{
  "bindings": [
    {
      "context": "Chat",
      "bindings": {
        "enter": "chat:newline",
        "meta+enter": "chat:submit"
      }
    }
  ]
}

Expected Behavior

Pressing Enter during IME composition should only confirm the IME conversion, without triggering chat:newline or chat:submit.

Actual Behavior

Pressing Enter to confirm IME conversion triggers both submit and newline simultaneously.

Related Issues

  • #23458 — Custom keybinding issues with Enter key
  • #39219 — Enter key issues specific to Ghostty (Kitty keyboard protocol)
  • #8405, #8502 — Original IME Enter submission issues (fixed in late 2025, but may have regressed with custom keybindings)

View original on GitHub ↗

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