Apr 17, 2011, 9:17 AM
[CLOSED] Close ComboBox popup in javascript? And some other ComboBox questions
Hey,
I have these Listerens for a ComboBox:
Question 2: Difference between TAB and ENTER when the popup is open.
Also, it seems to be a difference between how I "leave" a ComboBox. The ComboBox gets Focus, and the popup is opened by the Listerner above. When I then press TAB, it selects the first item in the list and moves on, the second Listener if fired and ComboBox2 gets the Focus.
If I however press ENTER instead of TAB, then it just closes the popup but doesnt seem to actually "choose" the value, and this I know since the Focus is not shifted to ComboBox2 as would happen if a value was actually selected.
So, when pressing ENTER - is no value selected?
I have these Listerens for a ComboBox:
<Listeners>
<Focus Handler="this.onTriggerClick();" Delay="1" />
<Select Handler="if (this.getValue() > 0) { #{ComboBox2}.focus(); }" />
</Listeners>
Question 1: How can I close it on Blur?Question 2: Difference between TAB and ENTER when the popup is open.
Also, it seems to be a difference between how I "leave" a ComboBox. The ComboBox gets Focus, and the popup is opened by the Listerner above. When I then press TAB, it selects the first item in the list and moves on, the second Listener if fired and ComboBox2 gets the Focus.
If I however press ENTER instead of TAB, then it just closes the popup but doesnt seem to actually "choose" the value, and this I know since the Focus is not shifted to ComboBox2 as would happen if a value was actually selected.
So, when pressing ENTER - is no value selected?
Last edited by Daniil; Apr 25, 2011 at 7:58 AM.
Reason: [CLOSED]