Fix IME character conversion triggering unintended form submission

GitHub issue #71 Feature Shipped anoworlvia discord Jan 2, 2026 View Discord message View GitHub mirror 1 GitHub reaction

Discord Message

Author: anoworl Channel: #feedback Link: https://discord.com/channels/1405685085923049482/1405686161791516873/1456435830703915230


In Shelley, pressing Enter to confirm IME character conversion causes the form to be submitted unintentionally.

As a Japanese speaker, I've noticed that hitting Enter to convert hiragana to kanji triggers a form submission even though it wasn't intended. I believe Chinese speakers likely encounter the same issue.

A technical fix would likely involve ensuring the system "safely composes with your handlers (user → library). Respects event.defaultPrevented and event.isPropagationStopped()." (Quoted from the documentation of a library designed to address this: https://github.com/catnose99/use-chat-submit/tree/main?tab=readme-ov-file#why-it-helps).

For the time being, I am working around this issue by using an extension such as IME Submit Blocker.

discord-bug

3 Comments

anoworlvia github Jan 2, 2026

I am the author of the comment. Thank you for creating the issue.

My apologies, but I quoted the wrong part regarding the technical fix. Please allow me to provide a correction for clarification: :bow:

Never submits while an IME is composing (two-step check with KeyboardEvent.isComposing on keydown/keyup).

Quoted from: https://github.com/catnose99/use-chat-submit/tree/main?tab=readme-ov-file#key-behavior-modes

philzvia github Jan 5, 2026

https://exe.dev/docs/shelley has instructions on how to upgrade (or create a new VM). I tried typing Japanese on my Mac, and I think it's working as intended, but please re-open if it's not.

anoworlvia github Jan 8, 2026

Sorry for the late reply, I've just tested the fix and it's working perfectly! Thanks for the lightning-fast turnaround. You're a lifesaver! 🥰