gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPopUpButton keyboard navigation


From: Philippe Roussel
Subject: NSPopUpButton keyboard navigation
Date: Fri, 19 Jan 2007 12:22:23 +0100
User-agent: Mutt/1.5.11

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]