Community
Participate
Working Groups
To reproduce, go to Combo tab in the controls demo wiht Firefox 4. Try to use the up/down keys to change the selection on any of the combos on the left - it wont work. However, on the combos on the right (e.g. Cursor) it will work. Also in any other browser all combos work.
Note: keys left/right work ok.
If you make the combos on the left read only (check the READ_ONLY checkbox) that up/down keys become to work again.
The problem seems to be that while the textfield widget is not focused in this scenario, the actual html-element still is, and it seems it now consumes the needed event (what it didnt do in FF3.6). The solution would be to properly blur the element.
Created attachment 195873 [details] partial fix This fixes the focus issue when the list is visible, however the problem remains when there is currently no list visible. (So: editable combo + focus + no dropdown => up/down doesnt work.) To fix that the keyDown and keyPress listener in Combo would have to be refactored or merged, and thats not a trivial task since i'm not aware of why both are used.
(In reply to comment #3) I can confirm this. In FF4 the html input element inside a div does not propagate the keypress event to the div for specific keys like Up/Down/PgUp/PgDown. I don't remember why both keyDown and keyPress listeners are used in Combo too. Will try to move the Up/Down/PgUp/PgDown handling in keyDown event.
Fixed in CVS HEAD by moving the Up/Down/PgUp/PgDown handling in keyDown event. JS test added.