Skip to main content
Inspiring
Feb 5, 2009 6:54 PM UTC
Answered

Key Press Event

I have been pouring through the TLF API docs looking for events to handle key presses on a TextFlow and I am not finding anything. I'm sure it's simple, can anyone give me a clue? I'm looking to detect Ctrl+B, Ctrl+I, etc.. to trigger formatting.

This topic is closed to new replies. Start a new post to keep the conversation going.
rdermerCorrect answer
Inspiring
Feb 5, 2009 7:57 PM UTC
The events go to the DisplayObjectContainerController. You will want to override the processKey event functions to add special handling. Those are in the protected methods section and are inherited from a base class.

2 replies

rdermerCorrect answer
Inspiring
Feb 5, 2009 7:57 PM UTC
The events go to the DisplayObjectContainerController. You will want to override the processKey event functions to add special handling. Those are in the protected methods section and are inherited from a base class.
Translate
Inspiring
Feb 5, 2009 11:13 PM UTC
Works great! Cheers.
Translate