Applied patch by Pete Goodeve from ticket #7182. It improves

keyboard navigation/tracking of BMenus and BMenuBars, although
many issues remain.
Should not yet go into alpha, since there is one issue which
I am not sure if it's not a regression. The issue is that
invoking a menu item with Enter for the first time seems to
have no effect, while invoking it subsequently works as
expected. I don't know, yet, if that's a regression of this patch.
In any case, it's better than before, thanks, Pete!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42004 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2011-06-07 12:46:00 +00:00
parent 7b03963e8a
commit e750d35cbf
3 changed files with 69 additions and 22 deletions
+3 -1
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2006-2008, Haiku, Inc.
* Copyright 2006-2011, Haiku, Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -14,6 +14,8 @@
enum menu_states {
MENU_STATE_TRACKING = 0,
MENU_STATE_TRACKING_SUBMENU = 1,
MENU_STATE_KEY_TO_SUBMENU = 2,
MENU_STATE_KEY_LEAVE_SUBMENU = 3,
MENU_STATE_CLOSED = 5
};