Mac: Fix for key up events not getting forwarded to web contents.
commita580b9b2563d118744fd5053b0ac91c5097c1fc0
authorandresantoso <andresantoso@chromium.org>
Tue, 16 Dec 2014 19:15:26 +0000 (16 11:15 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 16 Dec 2014 19:16:00 +0000 (16 19:16 +0000)
tree6859533ae8e97d640ca083d4ec9b07683cc5b510
parentf739afc03d8efeda8f17a8d6273ddc34bafb685a
Mac: Fix for key up events not getting forwarded to web contents.

This was broken by https://codereview.chromium.org/740533003.
It only keeps track of the last key code, so it doesn't properly handle the case
where multiple keys are down simultaneously.
Fixed by keeping track of all key down codes using a set.

BUG=439934

Review URL: https://codereview.chromium.org/805823003

Cr-Commit-Position: refs/heads/master@{#308628}
content/browser/renderer_host/render_widget_host_view_mac.h
content/browser/renderer_host/render_widget_host_view_mac.mm