8143077: Deprecate InputEvent._MASK in favor of InputEvent._DOWN_MASK

Reviewed-by: prr, alexsch, azvegint, mchung, egahlin
This commit is contained in:
Sergey Bylokhov 2017-01-31 19:22:35 +03:00
parent f6c6c8edd0
commit ef7192a7b8
98 changed files with 233 additions and 58 deletions

View file

@ -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);