I’m using a combobox and it’s working fine if the user selects from the popup. But if the user types in an entry and hits “Enter”, it will not trigger.
What I’d like is to add an event capture so that when the user hits Enter, the submit is triggered.
The enter key is indeed triggering. Upon further investigation, it seems that when the user selects a value with the mouse, z.getSelectedText() has the value from the selection. However, when the user uses the enter key, z.getSelectedText() is null.
Can you tell me what I need to do when the enter key is used to make getSelectedText() work properly?
I hope you can help again. When I upgraded to 2.6, the combobox stopped working for me. What happens is that when I type any letter that matches, it goes ahead and calls the SelectionChange() function. It used to only happen when the user clicked and entry, or hit the Enter key. Here is a small example: