Skip to main content
Inspiring
February 5, 2009
Answered

Key Press Event

  • February 5, 2009
  • 1 reply
  • 631 views
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 has been closed for replies.
Correct answer rdermer
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.

1 reply

rdermerCorrect answer
Adobe Employee
February 5, 2009
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.
Inspiring
February 5, 2009
Works great! Cheers.