Hi All,
1. I have a context menu with some items in it. I have not assigned
any key board shortcuts to any menu item. Now when the context menu is
open and some key (say 'a') is pressed and if context menu contains
only one menu item whose text starts with 'a' then it triggers action
for that menu item.
At the same time if more than one item with name starting from 'a'
exists then it toggles the focus on pressing 'a' and not triggers any
action for any menu item.
It seems to be the default behavior of context menus.
->Now I want to disable this (default) key board handling of context
menus. How can I do it??
2. I have another context menu which contains various menu items. Some
items are just groups items, which simple does nothing apart from
grouping same category menu items. For example consider the following
menu structure:
GroupMenu1
GroupSubMenu1
Menu2
GroupMenu2
Menu3
Menu4
No action handling is done for GroupMenu1 and GroupMenu2 as they are
not meant to be. So no handling is done for them and at the same time
code is written for not closing the context menu when any of the
GroupMenu option is clicked and not to highlight them as I am using
custom menu rendering. Now when context menu is opened and 'G' is
pressed multiple times then 'GroupSubmenu1' gets highlighted every
third time when 'G' is pressed. It seems that two 'G' were
highlighting the GroupMenu1 and GroupMenu2.
->Now I want to stop it and want that pressing 'G' multiple times
should only highlight GroupSubMenu1 each time.
Sorry for the bulky post and Thanks!!