Hi,
I have a Form with a RadMenu added to it (using form.Controls.Add (menu), and the menu is configured as :
Dim item As RadMenuItem = New RadMenuItem
item.Name = "Test"
item.Text = "Test"
item.Shortcuts.Add(item:=New RadShortcut(Keys.Alt, Keys.T))
Dim mOption As RadMenuItem = New RadMenuItem
mOption.Name = "Go"
mOption.Text = "Go"
item.Items.Add(value:=mOption)
menu.Items.Add(item)
This correctly displays the menu at the top of the form as "Test ALT + T", but I am expecting the Alt + T keypress to dropdown the menu to show the "Go" option, but this isn't happening.
Am I using this incorrectly?
Actually, the reason I am looking to use ShortCuts in this way is our existing app currently uses the "&" notation to provide keyboard access to the menu, so the example above would be "&Test" and this would correctly dropdown down on ALT + T.
The reason we are looking to move to shortcuts is we have an issue with the menu retaining focus on a non-existing Alt + KEY combo which is causing us problems.
E.g,
If the user types Alt + Z nothing happens, which is correct as there is no ALT + | menu item.
Now if the uses types T without ALT, we would like the T the keypress to be processed by the form and not the menu, unless ALT is pressed again.
We are finding though that the menu is still snagging the T keypress and dropping down the Test menu, which is not what we want.
Is there an alternate approach we can use to avoid this?
Mark