B4J Question Key combo on mouse click

Nokia

Active Member
Licensed User
Longtime User
On the mouse event click, how can I tell if any key combination is being held down during the click?

For example, If I double click a control or pane, I want to know if the "Control" key, "Shift" key and "E" key (Control+Shift+E) is held down.
 

stevel05

Expert
Licensed User
Longtime User
You can only check if the Modifier keys are pressed from the MouseEvent and not specific keys.

If it is really necessary, you could use a mousepressed and mousereleased events to monitor the mouse state and a KeyPressed and/or KeyReleased event to listen for the keypresses and check the mouse state.
 
Upvote 0
Top