I'm trying to write an actor VI that will handle a few keyboard shortcuts for a strong control. For example, Ctrl-A should select all. I was hoping an event structure would allow me to detect that keyboard combination. But Key Down(?) doesn't work: Pressing and holding control fires off the event for Key Down(?), but then pressing any other keyboard character fails to fire the same event.
I can make it work using the Key Up event, but this doesn't select the text until after the keys are up, whereas the normal select-all behavior in most applications will do the text selection while the keys are still pressed.
Turns out that the need to detect control-key on a key down event exists elsewhere. For example, I have string filtering on arrow keys (do something when an arrow key is pressed while in a strong control), but this prevents the default ctrl-arrow key behavior. I need to detect whether the control key is pressed to keep the expected text-selection behaviors.
Any ideas?