09-29-2025 03:14 AM
Hi everyone,
I'm working on a VI where I use the "Key Down?" event to detect user input, specifically to validate a String Control. The idea is to analyze every key the user presses, and also inspect the full string after a CTRL+V paste operation.
Everything works as expected when the VI runs standalone (i.e., in the context). However, when I insert the same VI into a SubPanel, the paste operation doesn't seem to trigger the event — it's like the "Key Down?" event isn't firing at all.
Has anyone encountered this behavior before? Is there a workaround to make CTRL+V detection work inside a SubPanel?
Thanks in advance!
09-29-2025 04:03 AM
From Using Events with Subpanel Controls
If you configure a VI to handle an event and then configure the VI you load into a subpanel control to handle the same event, the top-level VI containing the subpanel control handles the event.
Bob Schor shared some workaround in Key Down Events in sub-Panel?
09-29-2025 10:24 AM
It is also possible to capture keys pressed on keyboard without event. It works on sub panels and also in vi's that are not in front :