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
8244735: Error on iOS passing keys with unicode values greater than 255 #217
Conversation
…, without keyCode value (except for enter and backspace)
👋 Welcome back jpereda! A progress list of the required criteria for merging this PR into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This indeed fixes JDK-8244735.
It only touches ios-specific files, hence there is no impact on other platforms.
@jperedadnr This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type
Since the source branch of this PR was last updated there have been 2 commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge As you do not have Committer status in this project, an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@johanvos) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@jperedadnr |
/sponsor |
@johanvos @jperedadnr The following commits have been pushed to master since your change was applied:
Your commit was automatically rebased without conflicts. Pushed as commit b14e085. |
With this PR, we pass directly the 16-bit unsigned short for a character (unicode value) to the Java layer, avoiding the cast with the C++ 8-bit char, that fails for non-ascii characters like euro (€) or quote (").
We also avoid the mapping between iOS keys and JavaFX
KeyCode
, except forENTER
andBACK_SPACE
, as the mapping for some keys was wrong, like for "%", with ascii value 0x25, that was mapped to KeyCode.LEFT.Finally, the iOS keyboard is set to
UIKeyboardTypeASCIICapable
, to prevent the display of the emoji keyboard, that can't be currently processed.Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jfx pull/217/head:pull/217
$ git checkout pull/217