mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8166772: Touch keyboard is not shown for text components on a screen touch
Reviewed-by: serb, azvegint
This commit is contained in:
parent
a9cb8eb350
commit
dd41b7691f
24 changed files with 726 additions and 13 deletions
|
@ -56,6 +56,8 @@ import java.util.List;
|
|||
import javax.print.attribute.*;
|
||||
import javax.print.PrintService;
|
||||
|
||||
import sun.awt.AWTAccessor;
|
||||
import sun.awt.AWTAccessor.MouseEventAccessor;
|
||||
import sun.reflect.misc.ReflectUtil;
|
||||
|
||||
import sun.swing.SwingUtilities2;
|
||||
|
@ -3420,6 +3422,9 @@ public class JTable extends JComponent implements TableModelListener, Scrollable
|
|||
event.getClickCount(),
|
||||
event.isPopupTrigger(),
|
||||
MouseEvent.NOBUTTON);
|
||||
MouseEventAccessor meAccessor = AWTAccessor.getMouseEventAccessor();
|
||||
meAccessor.setCausedByTouchEvent(newEvent,
|
||||
meAccessor.isCausedByTouchEvent(event));
|
||||
|
||||
tip = ((JComponent)component).getToolTipText(newEvent);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue