# Ctrl+Enter instead of Enter in TextArea

**URL:** <https://forum.kirupa.com/t/ctrl-enter-instead-of-enter-in-textarea/236381>\
**Category:** flash\
**Created:** [August 20, 2007, 1:42pm UTC](https://forum.kirupa.com/t/ctrl-enter-instead-of-enter-in-textarea/236381 "2007-08-20T13:42:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pips](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/pips/32/941_2.png) [@pips](https://forum.kirupa.com/u/pips)\
**Post date:** [August 20, 2007, 1:42pm UTC](https://forum.kirupa.com/t/ctrl-enter-instead-of-enter-in-textarea/236381/1 "2007-08-20T13:42:51Z")

</div>

Hi,

I’m creating a Flash instant messaging application (through XMPP protocol) and run into a problem. It isn’t that important but I was quite upset that I wasn’t able to solve it and I want to know if their is a solution =D

I have a TextArea chat input and a button to send the text, the TextArea is multiline and so captures the Enter key to jump one line… What I need is to send the message with the Enter key and jump with a Ctrl+Enter combination… My ideas were to disable the bubbling of the Enter key, trap it, and then manually assign the Ctrl+Enter combination to jumping the line in TextArea but couldn’t find how to do all this…

I have to programm this application in AS2 but will be glad if you have an AS3 solution as well (to use later, learn and help others reading this thread 🙂

thnx,  
Philip Seyfi, [fs-studio.eu](http://fs-studio.eu/)
