changeset 1340:6f1f159aed75

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
author yan
date Wed, 03 Jun 2009 17:41:05 +0400
parents 52493efeb137
children a3f970a8600b
files src/windows/native/sun/windows/awt_Component.cpp
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/windows/native/sun/windows/awt_Component.cpp	Mon May 25 18:22:23 2009 +0400
+++ b/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"
     }