Reg - key event "F1" in the drop-down list box

Hello

Requirement:

I need that to launch a browser window press the 'F1' key during the video (swf) has the focus. I did and it works very well for me in the web application.

Problem statement:

When a film was released and with focus in "Combo" (which has the list of items begins with A letter Z) control then, I pressed the 'F1' key but the browser window has been launched, instead "main action from the drop-down list box event fired and the article begins with the letter 'P' has been selected in the combo box." So now again once I hit 'F1', the browser window launched according to my condition.

This behavior occurs whenever launched film has the focus in the "combo box"; otherwise, if the focus is on another control as TextInput etc, no problem for me. A more information, if the drop-down list box is not no matter what element does begin with the letter 'P' so no problem for me.

I tried to understand the behavior of the combo, but again, I have no idea. Please share your knowledge/thoughts.

Environment:

Flex builder 3.5

11.2 Adobe flash player

Windows XP SP3

Kind regards

Mani

Hello

I just replaced Manager keydown to the ComboBox component to avoid his own behaviour of spread of events if the 'F1' key and his works fine for me.

Thanks for all,

-Mani

Tags: Flex

Similar Questions

  • Automatically populate a drop-down list by using another selection from the drop-down list box

    New java/preparation forms so I apologize in advance.

    I currently have a menu drop-down box 1 (Occupation) with three options: "enter your own description/blank", retired housewife. When someone chooses either retirement or anyone at home, I would another drop box 2 (employer) to assign automatically "n/a. . The employer drop box has only two options: "enter your own/blank", N/A.

    Far, I could for that box to fill but only when the person clicks in the box (as if they were about to enter their own text.) Then only it will fill the drop-down list "employer." I would like it auto fill once the person has chosen retired, Virgin or stay-at-home woman without having to enter in the box (just using the arrow to the size of the drop-down list box).

    I currently have a key shot that resets the employer box when a person chooses the option vacuum/enter your own option. I then a JavaScript (only for the housewife now) that only works if you click the box of. Key combination works I want to than the other options work as well. If the client settles on white, the choice of the employer updates automatically empty without having to click in the box of. Any help (including general advice to make my code cleaner) is very appreciated!

    Current script of typing:

    If {(event.willCommit)

    If (event.value == "") this.resetForm (["use"]); of other SetFieldValues (event.value);

    }

    The current upward, mice running JavaScript :

    var v = this.getField ("Occupation") .value

    If (v is "Housewife")

    1. this.getField("Employer").value = "N/a".

    I think maybe I should use event.willCommit in my formula, but I'm not sure how to include it.

    Thank you!

    I would not use the key sequence or MouseUp actions for this, but the action post.

    Just make sure that you set the field option to validate the selected value immediately (under Properties - Options) and then use this code as the custom validation script:

    var employerField = this.getField("Employer");
    if (event.value=="Homemaker" || event.value=="Retired")
        employerField.value = "N/A";
    else employerField.value = employerField.defaultValue;
    
  • How to use the drop-down list box to fill in a text box

    I'm a beginner when it comes to Java Script.  I have seen a lot of different discussions, look at a lot of articles "helping" Acrobat 9 and Java Script, but only to be left confused and dazed.  I hope someone can tell me how to write a script that fills a text box that sits on my form with the value of exports of the selection in the combo box...

    Thank you

    If you want that the read-only text box, simply set with the following custom calculate script:

    Set this field to the value of the drop-down list box

    Event.Value = getField("combo1").value;

    but replace "combo1' with the actual name of the combo box field.

    If you want something else, post again with more information.

  • cannot detect if it is has only 1 item in the drop-down list box?

    I have an array of strings to put them in the drop-down list box, a drop-down list box. I will select an item in the drop-down list box drop-down list and press the button 'delete '. It removes the item from the drop-down list box. but when I come to the last drop-down list box, im unable to remove offshore because it does not get pass this line...

    myEntries.selectedItem.label is myArray [i]

    Why do myEntries.selectedItem.label is not detected in the last element?

    Entries.addEventListener (Event.CHANGE, EntriesChange)

                   }

              }

    "" var str_entries:String = "";

    //set default

    function EntriesChange(e:Event):void {}

    for (var i = 0; i < myArray.length; i ++)

                   {

    { if (myEntries.selectedItem.label == {myArray [i].)}

    str_entries = myArray [i];

    trace ("str_entries =" + str_entries)

                        }

                   }

              }

    You can not able to delete the index 0th, the code below, did the trick:

    delbtn.addEventListener (MouseEvent.CLICK, delfn);
    function delfn(e:MouseEvent):void {}
    var str:String=String(Entries.selectedItem.label).toLowerCase();
    for (var i = 0; i)<>
    var str1:String=String(myArray[i]).toLowerCase();
    If (str == str1) {}
    Entries.removeItem (Entries.selectedItem);
    If (Entries.length == 0) Entries.removeAll ();
    str_entries = myArray [i];
    }
    }
    }

  • How to display text programmatically in the drop-down list box?

    Is it possible to display text programmatically in a drop-down list box.  I would like to display the word "Select" in the drop-down list box each time my program starts.  As it is now, drop-down list displays the last channel that has been selected the last time that the program is running.

    Thanks in advance.

    In fact, after actually reading your post...

  • Change the number of items in the drop-down list box when running

    I'm trying to change the number of items in one of my boxes of comobo.

    I have been through the help and this forum and have the values to within the drop-down list box change very well, but in a scenario, I want to go to three options for 2. And according to other choices to 3.

    I guess I have to use a property node but I can't understand that one.

    You can use the method to reset to zero (using an invoke node) before setting the [Strings] (after setting the value by default an empty array) or create an Xcontrol (you can see examples of LabVIEW for xcontrol).

    Ben64

  • Display all items or all files in the drop-DOWN list BOX

    Hello

    How to show the total files available in the drop-down list box by scrolling.

    In my project, I have to store the Daq measurement values in file.

    Later, I need to plot a graph since the values of a specified file.

    For this I need to select a file from the number of files.

    Give an idea or a sample program.

    Kind regards

    Hari

    Hi hari,.

    I couldn't open your vi I use Labview 8.5.

    See vi attached with this post.

  • How to display the drop-down list box in MS excel by using labview report generation toolkit? pleasepost code block diagram?

    How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...

    Like this. (edition, use the reference forms instead of the reference to the worksheet)

    Ben64

  • How to add a destination folder in the drop-down list box "send to" in Windows XP?

    One of my disks in CD does not work, so I want to add the DVD drive in the drop-down list box... I can't remember how.

    Hello

    This article can help...

    http://support.Microsoft.com/kb/310270

    Tricky

  • How to fill out the database in the drop-down list box

    Hi all, I want to display all the data in database (c_type) column in the drop-down list box, how can I do?

    I use form 6i.

    Sorry if the question is already exist in the forum...

    Kind regards

    Maybe this helps http://andreas.weiden.orcl.over-blog.de/article-28957008.html

  • Adobe Acrobat 9: Javascript populated the drop-down list box - response selected array will not save

    I have a combo on one of my forms box that is filled with the help of a Javascript array.  The drop-down list box is filling very well, but when an item is selected in this drop-down list box, the selected item does not save when the user saves the document.  Any suggestions as to what is the problem and how it can be corrected?  I am a loss to know where even to start the search.  Any help is greatly appreciated.

    Thank you.

    Lisa

    It seems that the drop-down list box may be getting filled with code that runs when the form is opened. If so, it will overwrite the value selected, whenever it opens. The solution would be to change the code so that it is not than that. If not, you can post the form somewhere so we can take a look?

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • Validation in the drop-down list box

    Hello

    I use JDev 11.1 with fusion ADF

    I have the drop-down list box, this drop-down list box include a description and the value I want to if the user choose value e.g. - 2 and press the button Save appear validation said cannot insert this value, how can I do?

    Note that this drop-down list box to retrieve data from managed bean (not the view object)

    Concerning

    Hello

    You add a validator to your combobox component.

    Select your component in the property inspector-> Behaivour-> Validator-Edit... and create a method, and then you add the validation code it.

    More details on custom validators: http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_val004.htm#CIHFJBDI

    Greetings,
    Bogdan

  • Have the drop-down list boxes become visible depending on the selection in a previous drop-down list box?

    Hi, im doing a form that only shows some options based on the previous selections.

    So far I have buttons which allow a user to select a specific product, and then by using the drop-down combo boxes select some optional features.

    I then have a simple javascript code that bears the name of a product at a price (i.e. the user selects product 'A', the review sections shows priced at $ 99).

    My problem is with additional customization options that depend on previous choices.

    Is it possible to have some drop-down list boxes become visible depending on the selection in a previous drop-down list box? If yes how could I impliment it?

    Currently my best idea is to have a button that could ask the user if he or she had previously chosen a certain selection and then reveal areas of correct drop-down list accordingly.

    Thank you

    Hello

    With a small change I think that the code works as expected. I changed your mainDD.value to event.value, as on the validate event the mainDD.value property cannot be updated as expected.

    script

    this.getField("Dropdown2").display = display.hidden;

    this.getField("Dropdown3").display = display.hidden;

    this.getField("Dropdown4").display = display.hidden;

    Switch (event.value)

    {

    case "a":

    this.getField("Dropdown2").display = display.visible;

    break;

    case "b":

    this.getField("Dropdown3").display = display.visible;

    break;

    case 'c ':

    this.getField("Dropdown4").display = display.visible;

    break;

    by default:

    break;

    }

    end of script

    Hope this helps

    Malcolm

  • Try to get the value of exports from the drop-down list box

    Using the "strikes a custom Script" for a drop-down list box:

    This works, but gives the current face value


    If (event.willCommit)
    {
    App.Alert (Event.value);
    }

    This works, but returns the previous export value


    If (event.willCommit)
    {
    App.Alert (Event.Target.value);
    }

    What I need is clicked on the current export value items as soon as we clicked.

    What I am doing wrong?

    Note that it returns nothing if event.willCommit is true, but it returns the value of the export, if it's false.

Maybe you are looking for