# Enter button on chat window

**URL:** https://forum.kirupa.com/t/enter-button-on-chat-window/198477
**Category:** programming
**Created:** [August 25, 2006, 11:46am UTC](https://forum.kirupa.com/t/enter-button-on-chat-window/198477 "2006-08-25T11:46:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Akirasan](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@Akirasan](https://forum.kirupa.com/u/Akirasan)
#### Post date: [August 25, 2006, 11:46am UTC](https://forum.kirupa.com/t/enter-button-on-chat-window/198477/1 "2006-08-25T11:46:57Z")

</div>

I have a chat window on a chess game with one dynamic textfield, that shows the typed text, and one input textfield with an “ok” button.

The OK button have this code to activate when user press the “enter” key:

```auto
on(release, keypress "enter") {//Do action}

```

It was everything working perfectly, the problem showed up when I added the UiScrollBar component to scroll the dynamic textfield.

When I added the UiScrollBar **to the library** , the keypress “enter” event on the button works no more! If I delete the UiScrollBar component, keypress event come back working again!

Looks like everytime you add a mx component, some events get messed up!

Is there a way to avoid this problem?

Thanks
