Question

How can I create a GUI element like the one of type "Input" that would register current keyboard keystroke, but I'm not talking about any letter or number, but rather special buttons like CTRL, TAB or Enter?

Was it helpful?

Solution

As far as i know there is no special GUI element handling that. There are some "workarounds" like

  1. When something gets written check if CTRL (or anything else) is pressed

    _IsPressed()

  2. Catch if you press CTRL with Hotkey and then make a Funktion to insert it into the Input

    HotKeySet({CTRL},_insertCTRL);

Does one of these work for you?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top