I need to see if the CTRL key is pressed while processing a mouse event. I tried using KeyListener, but trying to use the mouse event and the key event together is a problem due to focus issues.
What I'm trying to accomplish is to select multiple objects using the CTRL key, as on Windows.
It would be much simpler if in my mouse event I could just check the status of the CTRL key ...
Can you do it in Java?
Thanks.
source share