Descriptionmac: Load the system hotkeys after launch. (reland)
---------------Reland CL Description---------------------------
System mouse hotkeys were incorrectly being parsed as system keyboard hotkeys.
Other minor changes include:
- Expanded unit tests to include a sparsely populated symbolichotkeys.plist
from a real machine.
- Use correct types for the key_code and modifiers of the event.
- An event must have at least one of ctr/alt/cmd down to be considered a
hotkey.
- Use the NSDeviceIndependentModifierFlagsMask mask to prune out
device-dependent modifier flags, including event coalescing information.
---------------Original CL Description---------------------------
Original CL: https://codereview.chromium.org/370293004/
Shortly after launch, the system hotkeys are loaded and parsed. If a hotkey is
reserved by the system, it is not passed to the renderer. This allows system
hotkeys like (cmd + `) to work even if a flash plugin is selected.
Add a histogram to ensure that the system hotkey plist is being correctly
loaded and parsed.
BUG=383558, 395187
TEST=Open 2 Chrome windows. Navigate one to www.twitch.tv. The site should
include a flash plugin that automatically starts playing a video. Select the
flash plugin. The hotkey combination (cmd + `) should switch between the open
windows. The hotkey combination (cmd + L) should have no effect (it is a Chrome
hotkey, not a browser hotkey).
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286737
Patch Set 1 : Copy of patch set 7 from https://codereview.chromium.org/370293004/ #Patch Set 2 : Don't parse mouse hotkeys as keyboard hotkeys. #
Total comments: 4
Patch Set 3 : Don't parse mouse hotkeys as keyboard hotkeys. Same as patch set 2, but the diff is against a different base. #Patch Set 4 : Comments from rsesek. #
Total comments: 2
Patch Set 5 : Add more unit tests. #Patch Set 6 : Add more unit tests. #Messages
Total messages: 20 (0 generated)
|