Hi all
I'm trying to make keyboard navigation possible in my small app and I
think the patch below is needed. Without it I can't select the first
item.
Hope this helps,
Philippe
--- NSPopUpButton.m.orig 2007-01-19 12:16:24.000000000 +0100
+++ NSPopUpButton.m 2007-01-19 12:16:42.000000000 +0100
@@ -462,7 +462,7 @@ this to return nil to indicate that we h
else
{
selectedIndex = [menuView highlightedItemIndex];
- if (selectedIndex > 0)
+ if (selectedIndex >= 0)
{
[[_cell menu] performActionForItemAtIndex: selectedIndex];
}
--
Duct tape is like the Force. It has a light side and a dark side, and it holds
the universe together.
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev