[haiku-commits] r36819 - haiku/trunk/src/kits/interface

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 15 May 2010 14:40:59 +0200 (CEST)

Author: stippi
Date: 2010-05-15 14:40:59 +0200 (Sat, 15 May 2010)
New Revision: 36819
Changeset: http://dev.haiku-os.org/changeset/36819/haiku
Ticket: http://dev.haiku-os.org/ticket/5996

Modified:
   haiku/trunk/src/kits/interface/Menu.cpp
Log:
Patch by Ziusudra: Fixes navigation in to and out of sub menus with the cursor
keys. Thanks! Closes ticket #5996.


Modified: haiku/trunk/src/kits/interface/Menu.cpp
===================================================================
--- haiku/trunk/src/kits/interface/Menu.cpp     2010-05-15 12:26:55 UTC (rev 
36818)
+++ haiku/trunk/src/kits/interface/Menu.cpp     2010-05-15 12:40:59 UTC (rev 
36819)
@@ -372,7 +372,7 @@
        // when called on input_server initialization, since it tries
        // to send a synchronous message to itself (input_server is
        // a BApplication)
-       
+
        BMenu::sAltAsCommandKey = true;
        key_map* keys = NULL;
        char* chars = NULL;
@@ -505,7 +505,7 @@
                                                BMessenger msgr(Supermenu());
                                                
msgr.SendMessage(Window()->CurrentMessage());
                                        } else
-                                               Supermenu()->_SelectItem(item, 
false, false);
+                                               _QuitTracking();
                                }
                        }
                        break;
@@ -1512,7 +1512,7 @@
                window->Show();
 
                if (selectFirstItem)
-                       _SelectItem(ItemAt(0));
+                       _SelectItem(ItemAt(0), false);
 
                window->Unlock();
        }
@@ -1652,7 +1652,7 @@
                }
 
                UnlockLooper();
-               
+
                if (releasedOnce)
                        _UpdateStateClose(item, location, buttons);
 


Other related posts:

  • » [haiku-commits] r36819 - haiku/trunk/src/kits/interface - superstippi