Symbian
Symbian OS Library

FAQ-0232 Keyboard cannot be used with a single select list

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: AWT
Created: 06/09/99 Modified: 06/22/2001
Number: FAQ-0232
Platform: ER5

Question:
In Sun's JDK, you can select an item in a single select list from the keyboard by navigating to it with cursor control keys, but with EPOC Java this doesn't work.

Answer:
This is a known defect. It will be fixed in future Java releases. When you navigate by cursor to a new item, no event is generated and the previously selected item remains selected. If you then click on the second item, an ItemEvent does get generated, but the previous item gets reselected rather than the new. Because the list is now in an inconsistent state, if a third item is then selected, it will appear highlighted and another ItemEvent will be generated but the selected item will be null. A consistent state can then only be recovered by clicking on the first item again.
The only work around for this at the moment appears to be to warn users not to use keyboard navigation for lists.