提交 832aaa1b 编写于 作者: A alitvinov

8198605: Touch keyboard is shown for a non-focusable text component

Reviewed-by: serb, dmarkov
上级 771f14ff
...@@ -1123,6 +1123,7 @@ public final class WToolkit extends SunToolkit implements Runnable { ...@@ -1123,6 +1123,7 @@ public final class WToolkit extends SunToolkit implements Runnable {
} }
if ((e instanceof MouseEvent) && comp.isEnabled() && if ((e instanceof MouseEvent) && comp.isEnabled() &&
comp.isFocusable() &&
(((comp instanceof TextComponent) && (((comp instanceof TextComponent) &&
((TextComponent)comp).isEditable()) || ((TextComponent)comp).isEditable()) ||
((comp instanceof JTextComponent) && ((comp instanceof JTextComponent) &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册