nigelht / macwidgets

Collection of Mac style widgets written in Java (by Ken Orr)
http://nigelht.github.io/macwidgets
3 stars 0 forks source link

Keyboard navigation for SourceList #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If one navigates the sourcelist using the keyboard, the change events don't get 
fired. This can be 
expected since the API seems to be geared towards mouse clicks (button, 
numClicks arguments). 

If the component does not allow/use keyboard navigation, perhaps it should 
ignore keyboard 
events altogether (a la Apple Mail).

On the other hand, its nice to have keyboard navigation, so it might be useful 
to change the API to 
allow for keyboard navigation (a la iTunes).

One suggestion is to have an API call in SourceList which lets one choose 
whether to have keyboard 
navigation or not.

Original issue reported on code.google.com by gurj...@gmail.com on 9 Jul 2009 at 12:25

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 10 Jul 2009 at 10:42

GoogleCodeExporter commented 9 years ago
I guess I'm not sure what the deficiency is?

SourceListSelectionListener gets called whenever the selection changes.

Use SourceList.addSelectionListener

Original comment by kenneth....@gmail.com on 11 Jul 2009 at 8:49

GoogleCodeExporter commented 9 years ago
Its my fault, I missed that call when I first read the javadoc. The issue can 
be closed.

Original comment by gurj...@gmail.com on 12 Jul 2009 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by kenneth....@gmail.com on 12 Jul 2009 at 11:22