DescriptionAllow key events to continue propagation for commands without any event listeners.
Rather than complicating the API with proposals of key re injection, or runtime registration/deregistration (which we might want for other reasons in the future), here's a very simple change that would probably give us the same functionality. If an extension remove all chrome.commands.onCommand listeners, then they will no longer receive the onCommand event and thereafter, the browser should continue propagating the key event and not drop it. I think this is actually the correct behavior, but also allows extension authors to have a little more control over when a command should be processed.
BUG=407163
Committed: https://crrev.com/fa5d9da251c9aa5333ab5a22ddd0bb51f44d1db2
Cr-Commit-Position: refs/heads/master@{#292997}
Patch Set 1 #
Total comments: 6
Patch Set 2 : Fix tests. #Patch Set 3 : Add new test. #
Total comments: 14
Patch Set 4 : Address feedback. #
Total comments: 4
Patch Set 5 : Address nits #Patch Set 6 : Change manifest to use MacCtrl. #
Messages
Total messages: 21 (3 generated)
|