Hi all,
I have a .NET WebBrowser control that I am using to display some javascript-heavy pages that I've written. The pages use YUI and have been built in a way to be portable.
I have just discovered that while I can capture keypress in javascript, I cannot seem to capture keyup or keydown in javascript. This prevents me from hooking ESC, CTRL+A, UP, RIGHT, TAB, for example.
I understand that I can capture the keys in .NET, and that there are 'hacks' for some of these. For instance, Document.ExecCommand("SelectAll", .., ..) for CTRL+A. --- By the way, I still cannot get SendKeys.Send("{TAB}") to work for tab ---. I realize that I can use .NET to execute a function that processes the UP arrow, but for portability and best practice reasons, I really don't want to do this.
Can anyone explain why I am unable to capture the keyup/keydown events in javascript or suggest a workaround?
Thanks!