mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +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
|
@ -44,6 +44,8 @@ import java.security.AccessController;
|
|||
import sun.security.action.GetPropertyAction;
|
||||
|
||||
import sun.awt.AppContext;
|
||||
import sun.awt.AWTAccessor;
|
||||
import sun.awt.AWTAccessor.MouseEventAccessor;
|
||||
|
||||
/**
|
||||
* A collection of utility methods for Swing.
|
||||
|
@ -405,6 +407,9 @@ public class SwingUtilities implements SwingConstants
|
|||
sourceEvent.getClickCount(),
|
||||
sourceEvent.isPopupTrigger(),
|
||||
sourceEvent.getButton());
|
||||
MouseEventAccessor meAccessor = AWTAccessor.getMouseEventAccessor();
|
||||
meAccessor.setCausedByTouchEvent(newEvent,
|
||||
meAccessor.isCausedByTouchEvent(sourceEvent));
|
||||
}
|
||||
return newEvent;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue