6839645: Swing application prints message in Control Panel if language is changed
Summary: just remove debug printout from production builds; ignore multicharacter-generating keys
Reviewed-by: uta
--- a/jdk/src/windows/native/sun/windows/awt_Component.cpp Mon May 25 18:22:23 2009 +0400
+++ b/jdk/src/windows/native/sun/windows/awt_Component.cpp Wed Jun 03 17:41:05 2009 +0400
@@ -3334,7 +3334,13 @@
// reset
resetKbdState( kbdState );
}else {
- printf ("++++Whats that? wkey 0x%x (%d)\n", i,i);
+ // k > 1: this key does generate multiple characters. Ignore it.
+ // An example: Arabic Lam and Alef ligature.
+ // There will be no extended keycode and thus shortcuts for this key.
+ // XXX shouldn't we reset the kbd state?
+#ifdef DEBUG
+ DTRACE_PRINTLN2("wkey 0x%02X (%d)", i,i);
+#endif
}
kbdState[i] = 0; // "key unpressed"
}