Is WebBrowserShortcutsEnabled = false supposed to disable menu access?

Try creating a simple form with a MenuStrip, and add a menuitem (for example "Hello") with a shortcut on it (for example "Ctrl+H"). Write some code for the menuitem, for example "MessageBox.Show("Hello World!");".

Next, add a webbrowser to the form, and set its WebBrowserShortcutsEnabled propterty to false. Next, in the form's load event write something like the following:



webBrowser1.Navigate("about:blank");
webBrowser1.Document.Write(
@"<html><head><title>Test</title></head>
<body> Thisis a test to seeif WebBrowserShortcutKeysEnabled does what itis supposed todo
</body>
</html>
"
);

Now, run the form and try pressing the shortcut defined for the menuitem. Observe that nothing happens. Is this the intended behavior?

It seems to me that WebBrowserShortcutsEnabled shoud be used to turn off the built in shortcuts in the browser, like CTRL+P for printing, and not the custom ones defined on your form.

Eyvind.

[1486 byte] By [Eyvind] at [2007-12-17]
# 1
I reproduced the same problem, so post a bug report on the Microsoft Product Feedback Center. Although, there's probably not a lot that can do as its a wrapper around a COM control.
DavidM.Kean at 2007-10-6 > top of Msdn Tech,Windows Forms,Windows Forms General...