WebBrowser keyboard shortcuts
问题 I have a WebBrowser control displaying some HTML. I want the user to be able to copy the entire document, but not do anything else. I've set the IsWebBrowserContextMenuEnabled and WebBrowserShortcutsEnabled properties to false , and I want to handle KeyUp and run some code when the user presses Ctrl+C. How can I do that? The WebBrowser control doesn't support keyboard events. I tried using the form's KeyUp event with KeyPreview , but it didn't fire at all. EDIT : Here's my solution, inspired