Thursday 15 May 2008

More fun with combo boxes...

During the implementation of combo boxes in PUIR, I ran into another very interesting situation while playing with a Java Swing combo box. After clicking on the arrow button to open the pull-down list, I navigated through the list of options a bit by means of the mouse pointer. Then I decided to see how keyboard navigation works, and proceeded to use the up and down arrow keys...

Amazingly, the highlight (showing the selected item) jumped from the one the mouse pointer was on to a totally different item. It turns out that keyboard navigation and pointer navigation initially start from that same item, but mouse pointer navigation doesn't affect that starting point as far as keyboard navigation is concerned... In terms of consistency between the two forms of user interaction, this is a pretty big issue.

I was happy to find out that GTK+ doesn't seem to have this issue. Hopefully, the same can be said about various other toolkits.

Rest assured, PUIR doesn't have that problem :)

No comments: