Answered
How do I insert a <br/> in a TextFlow using EditManager on a Sprite
I am really stuck on how to inject a BreakElement into the
TextFlow via the keyboard.
I have been trying to figure out how to modify the SimpleEditor example to insert a <br/> instead of a <p> when I press the <shift>+<enter> keys.
I setup a handler for keyboard events, and I can trap when the appropriate key combination is entered, but I cant actually figure out what "character" to inject into the event stream to generate a <br/>
Any help would be appreciated.
Thanks,
Tim
I have been trying to figure out how to modify the SimpleEditor example to insert a <br/> instead of a <p> when I press the <shift>+<enter> keys.
I setup a handler for keyboard events, and I can trap when the appropriate key combination is entered, but I cant actually figure out what "character" to inject into the event stream to generate a <br/>
Any help would be appreciated.
Thanks,
Tim
