Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

KeyPress issues

Status
Not open for further replies.

CarddassX

Programmer
Apr 2, 2002
9
US
I made a flash file in which menus are called up by pressing certain keys on the keyboard. I also have an input text field on the same screen, which I want users to type freely. I currently have several keys designated for a specific menus but now I can't type with those keys in the input text field, or else they run the action.

I'm fairly new to actionscripting and can't seem to find my answer on any tutorial site. If anyone could help me with any coding to make keypress commands turn off while a user is typing in the input text field that would be a great help. Thanks in advance!

-Cardy
 
If you use...

Selection.setFocus(textFieldName)

..you can set the keyboard focus to your text field so you should be able to set up a conditional check which tests to see if the field is focused and, if so, blocks the actions you've set up on the other keys.
Slainte

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top