Bug #4788
closed
This is working with some more room for refinement:
-TAB and/or ENTER key should trigger the selection and close the popup
-ESC should exit the popup w/o changing the previously selected value
Now:
-CLICK on the field and the popup is shown
-TAB will save current selection from the popup
-ESC exits without saving any changes you may have made (selection)
-Start typing anything in the field and it will open the popup (if not already open from a click) and begin searching with whatever string you've managed to enter.
I was trying to use a focusGained event for showing the popup, but there were two issues:
-focus was immediately gained by the first widget when the page showed up
-you could "escape" from the popup and then no amount of clicking on the same filed would give you the popup back - you'd have to go to a different field then back to the old one to trigger the focus event.
also, ENTER key is not being captured by the popup - the underlying frame hears it first as if you've clicked the Ok button (since at this point these widgets are being used within a dialog page).
would like to add:
-DOUBLE CLICK to select the class and close the popup
-text field should show currently selected class, perhaps
closing this - i like how it's working at the moment. feels pretty natural to navigate and double click
Original Bugzilla ID was 4788
Also available in: Atom
PDF