mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 10:34:38 +02:00
8143077: Deprecate InputEvent._MASK in favor of InputEvent._DOWN_MASK
Reviewed-by: prr, alexsch, azvegint, mchung, egahlin
This commit is contained in:
parent
f6c6c8edd0
commit
ef7192a7b8
98 changed files with 233 additions and 58 deletions
|
@ -435,6 +435,7 @@ public class MenuItem extends MenuComponent implements Accessible {
|
|||
* keydown) and the item is enabled.
|
||||
* Returns true if there is an associated shortcut.
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
boolean handleShortcut(KeyEvent e) {
|
||||
MenuShortcut s = new MenuShortcut(e.getKeyCode(),
|
||||
(e.getModifiers() & InputEvent.SHIFT_MASK) > 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue