I tried to capture the key press event action in the web page and it all works very well by this way.
if (keyCode == 113) {
//alert("F2");
add();
But when tried to disable IE default shortcut key action for certain key. E.g. F3. I met some problem.
I tried to use return event.returnValue = false;; to block the event.
But it did not work at all in the IE7. It 's really a pain in the ass.
I tried sereral way and finally I get work on this way.
I set the event.keyCode to some value else to "cheat" the IE browser.
And it works
Some informatin for this issue:
IE7: onClick event on anchor element does not work
http://secte.wordpress.com/2008/12/11/ie7-onclick-event-does-not-work/