JDK-8117674 : Mnemonic-parsing with special characters
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: fx2.1,8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-03-15
  • Updated: 2015-06-17
  • Resolved: 2013-10-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Relates :  
Description
It's not possible to set a mnemonic in a MenuItem to a special character like '��', '��', '��'.

The attached screenshot shows how the MenuItem is displayed in a Menu.
Comments
Changeset: http://hg.openjdk.java.net/openjfx/8/graphics/rt/rev/8b1a40fed5c8
03-10-2013

Webrev attached for review. Mnemonics are currently implemented using the KeyCodeCombination class, which matches against the KeyCode property of a KeyEvent. This limits the usable keys to ASCII, since Glass only supports looking up English keyboards in KeyCode. A mnemonic is better represented by a KeyCharacterCombination, but this class is also implemented using a KeyCode for some reason (not sure if this is a bug). So I copied most of KeyCharacterCombination to an inner class in TextBinding and called it MnemonicKeyCombination. The only difference is that it matches against the "text" property in the KeyEvent instead. It uses String.equalsIgnoreCase() since mnemonics should not be case sensitive.
25-09-2013

The problem as I see it is that TextBinding.parseAndSplit() doesn't work in an i18n friendly way. Assigning to Leif for i18n expertise.
30-08-2013

This is also the case with any of Cyrillic letters. For example, if the UI language is Russian or Ukrainian - they will not work.
08-10-2012