7110590: DnDMerlinQLTestsuite_DnDJTextArea test fails with an java.awt.dnd.InvalidDnDOperationException
Reviewed-by: art
This commit is contained in:
parent
e20614ed03
commit
36b3d034d2
@ -802,9 +802,12 @@ public class AWTKeyStroke implements Serializable {
|
|||||||
*/
|
*/
|
||||||
protected Object readResolve() throws java.io.ObjectStreamException {
|
protected Object readResolve() throws java.io.ObjectStreamException {
|
||||||
synchronized (AWTKeyStroke.class) {
|
synchronized (AWTKeyStroke.class) {
|
||||||
|
if (getClass().equals(getAWTKeyStrokeClass())) {
|
||||||
return getCachedStroke(keyChar, keyCode, modifiers, onKeyRelease);
|
return getCachedStroke(keyChar, keyCode, modifiers, onKeyRelease);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
private static int mapOldModifiers(int modifiers) {
|
private static int mapOldModifiers(int modifiers) {
|
||||||
if ((modifiers & InputEvent.SHIFT_MASK) != 0) {
|
if ((modifiers & InputEvent.SHIFT_MASK) != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user