Fix IME character conversion triggering unintended form submission
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.
3 Comments
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:
Quoted from: https://github.com/catnose99/use-chat-submit/tree/main?tab=readme-ov-file#key-behavior-modes
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.
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! 🥰