mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-145612 IllegalArgumentException "invalid keyCode"
This commit is contained in:
@@ -483,15 +483,19 @@ public class IdeEventQueue extends EventQueue {
|
||||
modifiers |= InputEvent.ALT_MASK;
|
||||
}
|
||||
|
||||
int oldKeyCode = ke.getKeyCode();
|
||||
|
||||
//noinspection MagicConstant
|
||||
e = new KeyEvent(ke.getComponent(), ke.getID(), ke.getWhen(), modifiers,
|
||||
ke.getKeyCode(), ke.getKeyChar(), ke.getKeyLocation());
|
||||
ke = new KeyEvent(ke.getComponent(), ke.getID(), ke.getWhen(), modifiers,
|
||||
KeyEvent.VK_UNDEFINED, ke.getKeyChar(), KeyEvent.KEY_LOCATION_UNKNOWN);
|
||||
|
||||
ke.setKeyCode(oldKeyCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return e;
|
||||
return ke;
|
||||
}
|
||||
|
||||
private static AWTEvent mapEvent(AWTEvent e) {
|
||||
|
||||
Reference in New Issue
Block a user