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

8244735: Error on iOS passing keys with unicode values greater than 255 #217

Closed

Conversation

jperedadnr
Copy link
Collaborator

@jperedadnr jperedadnr commented May 11, 2020

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 for ENTER and BACK_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

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8244735: Error on iOS passing keys with unicode values greater than 255

Reviewers

  • Johan Vos (jvos - Reviewer)

Download

$ git fetch https://git.openjdk.java.net/jfx pull/217/head:pull/217
$ git checkout pull/217

@bridgekeeper
Copy link

bridgekeeper bot commented May 11, 2020

👋 Welcome back jpereda! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request.

@openjdk openjdk bot added the rfr Ready for review label May 11, 2020
@mlbridge
Copy link

mlbridge bot commented May 11, 2020

Webrevs

Copy link
Collaborator

@johanvos johanvos left a 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.

@openjdk
Copy link

openjdk bot commented May 12, 2020

@jperedadnr This change now passes all automated pre-integration checks. When the change also fulfills all project specific requirements, type /integrate in a new comment to proceed. After integration, the commit message will be:

8244735: Error on iOS passing keys with unicode values greater than 255

Reviewed-by: jvos
  • If you would like to add a summary, use the /summary command.
  • To credit additional contributors, use the /contributor command.
  • To add additional solved issues, use the /solves command.

Since the source branch of this PR was last updated there have been 2 commits pushed to the master branch:

  • b0d66d0: 8242508: Upgrade to Visual Studio 2019 version 16.5.3
  • 0f87d20: 8244487: One Windows 10 SDK file missing from FX build

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 master into your branch, and then specify the current head hash when integrating, like this: /integrate b0d66d0ded97d1a6514729dac73bc127868326da.

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 in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Ready to be integrated label May 12, 2020
@jperedadnr
Copy link
Collaborator Author

/integrate

@openjdk
Copy link

openjdk bot commented May 12, 2020

@jperedadnr
Your change (at version 31b8bea) is now ready to be sponsored by a Committer.

@openjdk openjdk bot added the sponsor Ready to sponsor label May 12, 2020
@johanvos
Copy link
Collaborator

/sponsor

@openjdk openjdk bot closed this May 12, 2020
@openjdk openjdk bot added integrated Pull request has been integrated and removed sponsor Ready to sponsor ready Ready to be integrated labels May 12, 2020
@openjdk
Copy link

openjdk bot commented May 12, 2020

@johanvos @jperedadnr The following commits have been pushed to master since your change was applied:

  • b0d66d0: 8242508: Upgrade to Visual Studio 2019 version 16.5.3
  • 0f87d20: 8244487: One Windows 10 SDK file missing from FX build

Your commit was automatically rebased without conflicts.

Pushed as commit b14e085.

@openjdk openjdk bot removed the rfr Ready for review label May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated
2 participants