jdk/src/share/classes/sun/awt/SunToolkit.java
changeset 12418 f749f1ed92ca
parent 12047 320a714614e9
child 12529 6da056faf511
--- a/jdk/src/share/classes/sun/awt/SunToolkit.java	Wed Apr 18 09:29:09 2012 +0400
+++ b/jdk/src/share/classes/sun/awt/SunToolkit.java	Wed Apr 18 21:08:38 2012 +0400
@@ -1126,6 +1126,16 @@
     }
 
     /**
+     * Tests whether specified key modifiers mask can be used to enter a printable
+     * character. This is a default implementation of this method, which reflects
+     * the way things work on Windows: here, pressing ctrl + alt allows user to enter
+     * characters from the extended character set (like euro sign or math symbols)
+     */
+    public boolean isPrintableCharacterModifiersMask(int mods) {
+        return ((mods & InputEvent.ALT_MASK) == (mods & InputEvent.CTRL_MASK));
+    }
+
+    /**
      * Returns a new input method window, with behavior as specified in
      * {@link java.awt.im.spi.InputMethodContext#createInputMethodWindow}.
      * If the inputContext is not null, the window should return it from its