# Component Help

**URL:** <https://forum.kirupa.com/t/component-help/295214>\
**Category:** Uncategorized\
**Created:** [August 26, 2009, 7:01pm UTC](https://forum.kirupa.com/t/component-help/295214 "2009-08-26T19:01:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beano](https://avatars.discourse-cdn.com/v4/letter/b/a88e57/32.png) [@beano](https://forum.kirupa.com/u/beano)\
**Post date:** [August 26, 2009, 7:01pm UTC](https://forum.kirupa.com/t/component-help/295214/1 "2009-08-26T19:01:52Z")

</div>

Hi,  
I have made a flash chat system with a php/mysql backend. The only problems I have right now are with a few components.

1. I have an editable TextArea for submitting a new chat message. When you hit enter to submit a new message, the current message is sent however a new line is started, with a blank one above it. Does anybody know how to disable the enter key in a TextArea, however allow people to use it by say, hitting [shift]+[enter]?

2. On my login page I have two TextInput components with a TextField beside both, when you try to select a TextInput you can only select the far right side of it and only about 25 pixels of it, it is not a problem with the TextField beside it, it does it even with it beside it, is there a known bug with TextInput or what?

Source:

```auto

   var usernameText:TextField = new TextField;
   usernameText.text = "Username";
   usernameText.x = 51;
   usernameText.y = 55;
   usernameText.selectable = false;
   usernameText.setTextFormat(font);
   addChild(usernameText);
 
   usernameField = new TextInput;
   usernameField.tabIndex = 1;
   usernameField.x = 140;
   usernameField.y = 55;
   usernameField.width = 100;
   usernameField.height = 20;
   addChild(usernameField);

```

Thanks,  
beano
