# HowTo Kill ComboBox key selection

**URL:** <https://forum.kirupa.com/t/howto-kill-combobox-key-selection/28995>\
**Category:** flash\
**Created:** [August 20, 2003, 10:12pm UTC](https://forum.kirupa.com/t/howto-kill-combobox-key-selection/28995 "2003-08-20T22:12:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyberdrifter](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@Cyberdrifter](https://forum.kirupa.com/u/Cyberdrifter)\
**Post date:** [August 20, 2003, 10:12pm UTC](https://forum.kirupa.com/t/howto-kill-combobox-key-selection/28995/1 "2003-08-20T22:12:21Z")

</div>

:crazy: Problem… :hangover:  
I have a combobox and an input field in my flash MX scene. When I make a selection in the combobox and start typing in the textbox, the combobox starts changing value as soon as I type a corresponding first key…

So what my question is, can you disable the keyboard selection of a combobox so that you only can select it by using your mouse?

Thanks Guys/Girls!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 21, 2003, 12:01am UTC](https://forum.kirupa.com/t/howto-kill-combobox-key-selection/28995/2 "2003-08-21T00:01:10Z")

</div>

If the FComboBox is changing the value, it’s because the focus is still on the FComboBox… once the focus is on the TextField, you shouldn’t have any problems.

To make sure that the focus is on the TextField, you can use the setFocus method of the Selection object.  
[AS]Selection.setFocus(TextFieldInstanceName);[/AS]  
[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary643.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary643.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 21, 2003, 8:34am UTC](https://forum.kirupa.com/t/howto-kill-combobox-key-selection/28995/3 "2003-08-21T08:34:09Z")

</div>

True… That’s a great solution… Sometimes things can be so easy!

Thanx Dude! I love this site!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 21, 2003, 9:08am UTC](https://forum.kirupa.com/t/howto-kill-combobox-key-selection/28995/4 "2003-08-21T09:08:37Z")

</div>

Yeah, usually things are easy… 😛

You’re welcome. 😉
