OpenOnKeyDown: Boolean
The OpenOnKeyDown property determines whether component panel could be opened on key click.
Available values:
true. Component panel opens on key clicking (default).
false. Component panel does not open on key clicking.
Use JSON or the setOpenOnKeyDown method to set the property value, and the getOpenOnKeyDown method to get the property value.
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 combo box on the page and forbid to open component panel on key clicking:
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: