DescriptionSend key equivalents to renderer first.
Based on a patch by avi@.
See also http://codereview.chromium.org/271054 .
Known issues:
* Breaks if any menu item ever uses a keyboard accelerator that doesn't use cmd as part of the flags.
(* Suppressing keypress() doesn't prevent default action (suppressing keydown() works though. Both Firefox and Safari prevent the default action when either is suppressed). This seems to be broken on linux and windows too, though – it seems to match IE8, but not Firefox or Safari. I guess this is the question for the web council.)
BUG=15090
TEST=Cmd-f now sucks when used on google docs.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28709
Patch Set 1 #Patch Set 2 : merge tot #Patch Set 3 : kinda works #Patch Set 4 : minor cleanup #Patch Set 5 : tweak #Patch Set 6 : remove some logging #Patch Set 7 : cleanups #Patch Set 8 : x #Patch Set 9 : comments #Patch Set 10 : 80col #Patch Set 11 : ahem #
Total comments: 2
Patch Set 12 : comment #
Messages
Total messages: 2 (0 generated)
|