equal
deleted
inserted
replaced
1458 * Returns true if the given event is corrent gesture for |
1458 * Returns true if the given event is corrent gesture for |
1459 * accessing clipboard |
1459 * accessing clipboard |
1460 * |
1460 * |
1461 * @param ie InputEvent to check |
1461 * @param ie InputEvent to check |
1462 */ |
1462 */ |
1463 |
1463 @SuppressWarnings("deprecation") |
1464 private static boolean isAccessClipboardGesture(InputEvent ie) { |
1464 private static boolean isAccessClipboardGesture(InputEvent ie) { |
1465 boolean allowedGesture = false; |
1465 boolean allowedGesture = false; |
1466 if (ie instanceof KeyEvent) { //we can validate only keyboard gestures |
1466 if (ie instanceof KeyEvent) { //we can validate only keyboard gestures |
1467 KeyEvent ke = (KeyEvent)ie; |
1467 KeyEvent ke = (KeyEvent)ie; |
1468 int keyCode = ke.getKeyCode(); |
1468 int keyCode = ke.getKeyCode(); |
2127 } |
2127 } |
2128 } |
2128 } |
2129 return -1; |
2129 return -1; |
2130 } |
2130 } |
2131 |
2131 |
|
2132 @SuppressWarnings("deprecation") |
2132 public static int getSystemMnemonicKeyMask() { |
2133 public static int getSystemMnemonicKeyMask() { |
2133 Toolkit toolkit = Toolkit.getDefaultToolkit(); |
2134 Toolkit toolkit = Toolkit.getDefaultToolkit(); |
2134 if (toolkit instanceof SunToolkit) { |
2135 if (toolkit instanceof SunToolkit) { |
2135 return ((SunToolkit) toolkit).getFocusAcceleratorKeyMask(); |
2136 return ((SunToolkit) toolkit).getFocusAcceleratorKeyMask(); |
2136 } |
2137 } |