RFR: 8274854: Mnemonics for menu containing numeric text not working [v3]

John Hendrikx jhendrikx at openjdk.java.net
Fri Oct 29 20:22:13 UTC 2021


On Fri, 29 Oct 2021 13:58:35 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> This PR fixes an issue with mnemonic parsing by removing the restriction that a mnemonic symbol must be a letter. Now, it can be any character except whitespace.
>
> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
> 
>   changed javadoc

modules/javafx.controls/src/test/java/test/javafx/scene/control/skin/LabelSkinTest.java line 2162:

> 2160:         label.autosize();
> 2161:         skin.updateDisplayedText();
> 2162:         assertEquals("foo _bar _qux", LabelSkinBaseShim.getText(label).getText());

Can you verify here which letter / index is picked as mnemonic? (Also in the other tests).

-------------

PR: https://git.openjdk.java.net/jfx/pull/647


More information about the openjfx-dev mailing list