I’m trying to suppress IE’s default handling of Ctrl+O.
I’ve got a onKeyDown handler which get’s called, but even though I call event.cancelBubble and return false, the default File|Open command still runs.
btw: this is not critical since I can just pick another key but curious if there might be a way around this.
First, you can’t call
event.cancelBubble, it’s not a method, but a property you can set totrue.To prevent the default action of special keys in IE, you also have to set the IE keycode to 0: