On 07/18/16 10:37, Martin McDonough wrote:
> I'll try event_key and see what happens.
It should work so long as you read it in the context of
receiving an FL_PUSH or FL_RELEASE event in a handle() method.
> Although I'd expect that event_text should still report "\t" anyway?
Since event_text() returns the "text equivalent" of key strokes,
no, I wouldn't expect it to return anything, as there's no text
equivalent for Shift-Tab. An empty string is correct.
Tab is a valid white space ASCII character, shift tab is not,
and shouldn't map to any type of string to be inserted into
e.g. a text editor or input field.
event_key() is what you' want for catching specific keystrokes,
especially those without text equivalents.