# Taking off Focus or Disabling Keyboard input for Combo Box

**URL:** <https://forum.kirupa.com/t/taking-off-focus-or-disabling-keyboard-input-for-combo-box/226976>\
**Category:** flash\
**Created:** [May 25, 2007, 3:39pm UTC](https://forum.kirupa.com/t/taking-off-focus-or-disabling-keyboard-input-for-combo-box/226976 "2007-05-25T15:39:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wedge\_Man](https://avatars.discourse-cdn.com/v4/letter/w/f07891/32.png) [@Wedge\_Man](https://forum.kirupa.com/u/Wedge_Man)\
**Post date:** [May 25, 2007, 3:39pm UTC](https://forum.kirupa.com/t/taking-off-focus-or-disabling-keyboard-input-for-combo-box/226976/1 "2007-05-25T15:39:39Z")

</div>

Hey Guys,

So i have a combo box that a user can go a select different UI’s with. In another pane i have a map that the user can press the arrow keys the move up, down, left right etc.

Only problem is that once i have selected a map from the combo box, the combo box stays in focus so that when i press an arrow key, the map moves but it also scrolls through my combo box.

Any way i can disable keyboard input to the combo box or remove the focus on the combo box?

I’ve tried creating a dummy button on the stage called “dummy” and when the change event happens on the combo box i switch the focus using

Selection.setFocus(“dummy”);

but then i get a recursion error and it stops my scripts.

Any ideas?

Thanks
