Check if ctrl is pressed in an ActionEvent
This is my first time here, so I'll introduce myself first.
My name is Itai and I'm from Israel, I took a 10 month course in java that ended about a year ago.
I am now working as a software developer for a company called EASA software.
My question is regarding a personal project.
I have an ActionListener listening to a JideButton and I would like to see if CTRL was held down while the button was clicked.
Is there a way to do this?
The other option I thought of is having a static boolean be toggled when the key is pressed or released, and then check if the boolean is true or false. This will probably work, but it would mean a lot of processing that doesn't actually do much.
Thanks for any direction you may give.