提交 dd3e1cb1 编写于 作者: Y yan

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
上级 57244c18
...@@ -3334,7 +3334,13 @@ AwtComponent::BuildPrimaryDynamicTable() { ...@@ -3334,7 +3334,13 @@ AwtComponent::BuildPrimaryDynamicTable() {
// reset // reset
resetKbdState( kbdState ); resetKbdState( kbdState );
}else { }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" kbdState[i] = 0; // "key unpressed"
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册