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

Listen to Input Method Events #369

Open
jperedadnr opened this issue Nov 5, 2024 · 0 comments · May be fixed by #370
Open

Listen to Input Method Events #369

jperedadnr opened this issue Nov 5, 2024 · 0 comments · May be fixed by #370
Assignees

Comments

@jperedadnr
Copy link
Collaborator

JavaFX built-in text input controls (TextField and TextArea) handle two type of key events: KeyEvents for regular key strokes, and InputMethodEvent for composed keys (like ``+e = è`).

RTA only handles the first type, and that works fine up until JavaFX 23-ea+6. Starting 23-ea+7, changes in macOS native code broke this, and handling the second type is now needed.

The composed mode typically has two InputMethodEvent events, the first one with a composed String and a highlight Shape, and the second, that removes both, has the final committed string.

RTA most likely can't deal with the first event (inserting the composed String will break the chain of events), but so far we will keep a valid committed string.

@jperedadnr jperedadnr self-assigned this Nov 5, 2024
@jperedadnr jperedadnr linked a pull request Nov 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

Successfully merging a pull request may close this issue.

1 participant