Skip navigation
Mani S
Currently Being Moderated

Reg - 'F1' key event in Combo box

Nov 29, 2012 9:08 PM

Tags: #f1 #comboboxes #keyboardevent

Hi,

 

Requirement:

      I have requirement that to launch a browser window on press of 'F1' key while the movie (swf) has focus. I did it and working fine for me in web application.

 

Problem statement:

      When a movie had been launched and having focus in 'Combo box' (which has list of items starts with A to Z letters) control then, i pressed 'F1' key but the browser window has not been launched, instead 'Combo box's key action event get fired and the item starts with the letter 'P' has been selected in the combo box list. If now again i press 'F1' key the browser window has launched as per my requirement.

 

      This behavior is happening whenever the launched movie has focus in 'Combo box'; otherwise if the focus is on some other control like TextInput etc., no problem for me. One more information, if the Combo box doesn't have any item starts with the letter 'P' then no problem for me.

 

      I tried to understand the behavior of combo, but still i don't have any clue. Please share your knowledge/thoughts.

 

Environment:

      Flex builder 3.5

      Adobe flash player 11.2

      Windows XP SP3

 

Regards,

Mani

 
Replies
  • Currently Being Moderated
    Nov 30, 2012 1:36 PM   in reply to Mani S

    You can install a capture phase event listener and see the F1 key before the combobox does and call stopImmediatePropagation to prevent the combobox from seeing it.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points