From 0cf1ecfb29de66cd1f68b0c480e22e76625316a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sat, 15 May 2010 12:40:59 +0000 Subject: [PATCH] Patch by Ziusudra: Fixes navigation in to and out of sub menus with the cursor keys. Thanks! Closes ticket #5996. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36819 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Menu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 80f433ebba..78ed0a7b55 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -372,7 +372,7 @@ BMenu::AttachedToWindow() // 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 @@ BMenu::KeyDown(const char* bytes, int32 numBytes) BMessenger msgr(Supermenu()); msgr.SendMessage(Window()->CurrentMessage()); } else - Supermenu()->_SelectItem(item, false, false); + _QuitTracking(); } } break; @@ -1512,7 +1512,7 @@ BMenu::_Show(bool selectFirstItem) window->Show(); if (selectFirstItem) - _SelectItem(ItemAt(0)); + _SelectItem(ItemAt(0), false); window->Unlock(); } @@ -1652,7 +1652,7 @@ BMenu::_Track(int* action, long start) } UnlockLooper(); - + if (releasedOnce) _UpdateStateClose(item, location, buttons);