Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent typing using the IME and discard composition sessions #316

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

64qq
Copy link

@64qq 64qq commented Dec 3, 2024

Closes #315
There is probably no direct way to disable IME input or cancel a composition session. Many IMEs discard the session when the input element was blurred, so I tried removing the focus once, clearing textarea.value and then re-focusing.

As I am a Japanese user, I've tested this with MS-IME and Google Japanese input which are popular IMEs in Japan, and this works almost without any problems. Very high-frequency input may rarely leave input in textarea.value, but it will not be a problem in practice.

This PR does not change the existing behaviour for non-IME input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keystrokes stuck when typing into MathQuill using IME (Input Method Editor)
1 participant