# HG changeset patch # User alitvinov # Date 1520212956 0 # Node ID 517c1f85c13a1c6fc0f16c2b04c63c59fe1e1efd # Parent d084b517639542fa9659196108d9e13b3bca6fb0 8198605: Touch keyboard is shown for a non-focusable text component Reviewed-by: serb, dmarkov diff -r d084b5176395 -r 517c1f85c13a src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java --- a/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java Sat Mar 03 09:55:22 2018 +0530 +++ b/src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java Mon Mar 05 01:22:36 2018 +0000 @@ -1104,6 +1104,7 @@ } if ((e instanceof MouseEvent) && comp.isEnabled() && + comp.isFocusable() && (((comp instanceof TextComponent) && ((TextComponent)comp).isEditable()) || ((comp instanceof JTextComponent) &&