changeset 49651:517c1f85c13a

8198605: Touch keyboard is shown for a non-focusable text component Reviewed-by: serb, dmarkov
author alitvinov
date Mon, 05 Mar 2018 01:22:36 +0000
parents d084b5176395
children d8d1061ce34c
files src/java.desktop/windows/classes/sun/awt/windows/WToolkit.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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) &&