8198605: Touch keyboard is shown for a non-focusable text component
authoralitvinov
Mon, 05 Mar 2018 01:22:36 +0000
changeset 49220 517c1f85c13a
parent 49219 d084b5176395
child 49221 d8d1061ce34c
8198605: Touch keyboard is shown for a non-focusable text component Reviewed-by: serb, dmarkov
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) &&