<Swing Dev> [9] Review request for 8130772: Util.hitMnemonics does not work: getSystemMnemonicKeyCodes() returns ALT_MASK rather than VK_ALT

Alexey Ivanov alexey.ivanov at oracle.com
Thu Jul 9 12:03:31 UTC 2015


Hello Swing team,

Could you please review the fix:
     JBS: https://bugs.openjdk.java.net/browse/JDK-8130772
     webrev: http://cr.openjdk.java.net/~aivanov/8130772/jdk9/webrev.00/

Description:
Util.hitMnemonics does not work because the new implementation of 
Util.getSystemMnemonicKeyCodes adds KeyEvent.ALT_MASK rather than 
KeyEvent.VK_ALT.

Fix:
Use KeyEvent.VK_ALT.

Tests that depend on Util.hitMnemonics pass after the fix is applied.

Thanks,
Alexey



More information about the swing-dev mailing list