Capture keystrokes in LM.GUI dialog?
Posted: Mon Nov 13, 2023 6:33 pm
I'm writing a script that has different modes, and I want to be able to quickly trigger them with a second keystroke after my initial keyboard shortcut invokes the script itself. So if I set up [ShiftT] as the keyboard shortcut to my script, I want to be able to press [ShiftT]-then-[1], or [ShiftT]-then-[2], or [ShiftT]-then-[3], etc. to access the different modes of my script.
Since keystrokes have the inherent possibility of being attached to other tools, I was wondering if this could be accomplished using a modal dialog box that immediately comes up when the script is invoked. Is there a way to listen for a single keystroke in a dialog box or attach keyboard shortcuts to custom GUI buttons?
Since keystrokes have the inherent possibility of being attached to other tools, I was wondering if this could be accomplished using a modal dialog box that immediately comes up when the script is invoked. Is there a way to listen for a single keystroke in a dialog box or attach keyboard shortcuts to custom GUI buttons?