Bug #4788
closedPopup lightweight ontology browser
0%
Description
Instead of the modal dialog, the browser should just be a super-duper-combobox
Updated by ben leinfelder almost 15 years ago
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
Updated by ben leinfelder almost 15 years ago
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.
Updated by ben leinfelder almost 15 years ago
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).
Updated by ben leinfelder almost 15 years ago
would like to add:
-DOUBLE CLICK to select the class and close the popup
-text field should show currently selected class, perhaps
Updated by ben leinfelder almost 15 years ago
closing this - i like how it's working at the moment. feels pretty natural to navigate and double click