< prev index next >

src/java.desktop/share/classes/sun/swing/SwingUtilities2.java

Print this page

        

*** 1458,1468 **** * Returns true if the given event is corrent gesture for * accessing clipboard * * @param ie InputEvent to check */ ! private static boolean isAccessClipboardGesture(InputEvent ie) { boolean allowedGesture = false; if (ie instanceof KeyEvent) { //we can validate only keyboard gestures KeyEvent ke = (KeyEvent)ie; int keyCode = ke.getKeyCode(); --- 1458,1468 ---- * Returns true if the given event is corrent gesture for * accessing clipboard * * @param ie InputEvent to check */ ! @SuppressWarnings("deprecation") private static boolean isAccessClipboardGesture(InputEvent ie) { boolean allowedGesture = false; if (ie instanceof KeyEvent) { //we can validate only keyboard gestures KeyEvent ke = (KeyEvent)ie; int keyCode = ke.getKeyCode();
*** 2127,2136 **** --- 2127,2137 ---- } } return -1; } + @SuppressWarnings("deprecation") public static int getSystemMnemonicKeyMask() { Toolkit toolkit = Toolkit.getDefaultToolkit(); if (toolkit instanceof SunToolkit) { return ((SunToolkit) toolkit).getFocusAcceleratorKeyMask(); }
< prev index next >