OpenJDK / jdk / jdk10
changeset 2950:5056d8edd83a
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 | 8828b8313cab |
children | 08bcd34c5e50 |
files | jdk/src/windows/native/sun/windows/awt_Component.cpp |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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" }