Combo.OpenOnKeyDown

OpenOnKeyDown: Boolean

Description

The OpenOnKeyDown property determines whether component panel can be opened on keyboard key click.

Comments

Available values:

Use JSON or the setOpenOnKeyDown method to set the property value, and the getOpenOnKeyDown method to get the property value.

Example

To execute the example, the HTML page must contain links to PP.js script file and to PP.css styles file, in the <body> tag of the HTML page of the <div> item with comboBox identifier. In the onload event of the <body> tag it is necessary to specify the call of the createComboBox() function. Add a combobox on the page and forbid to expand component panel on keyboard key click:

var comboBox; // Combo box
function createComboBox() {
    // Create input editor with drop-down panel
    comboBox = new PP.Ui.ComboBox({
        EnableEdit: true,
        ListBox: {
            Items: [{
                Content: "I"
            }, {
                Content: "II"
            }, {
                Content: "III"
            }, {
                Content: "IV"
            }, {
                Content: "V"
            }]
        },
        OpenOnKeyDown: false,
        // Set parent item
        ParentNode: "comboBox",
        // Set width
        Width: 100
    });
}

As a result of example executing combo box is created. On inputting the value using keyboard, the component panel is not opened.

See also:

Combo