# Problem with Selection.setFocus

**URL:** <https://forum.kirupa.com/t/problem-with-selection-setfocus/105950>\
**Category:** Uncategorized\
**Created:** [March 31, 2004, 12:47pm UTC](https://forum.kirupa.com/t/problem-with-selection-setfocus/105950 "2004-03-31T12:47:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![virusescu](https://avatars.discourse-cdn.com/v4/letter/v/8edcca/32.png) [@virusescu](https://forum.kirupa.com/u/virusescu)\
**Post date:** [March 31, 2004, 12:47pm UTC](https://forum.kirupa.com/t/problem-with-selection-setfocus/105950/1 "2004-03-31T12:47:54Z")

</div>

Ok so … I have a problem.  
I need an input text field to get focus when I enter one specific frame.  
So I used this.

```auto

Selection.setFocus("myinputText");

```

And it sets the focus just fine BUT here is the problem.  
I can’t use backspace or del in that input text which is NOT GOOD.  
I really need it to work with at least one of the keys.

Can anyone please help?  
Any ideeas why it behaves like that?
