[Ozone] Fix disabling keyboard in maximized mode
commit988070a509bbec03a4389a0d6a013ace1d765826
authorpkotwicz <pkotwicz@chromium.org>
Wed, 11 Mar 2015 22:31:23 +0000 (11 15:31 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Mar 2015 22:32:13 +0000 (11 22:32 +0000)
treeaf1dec12c3f453348affc2d8788b3e7f67493060
parent46a8b676dd2a3b454fd3e6b92a6ea1da99bed796
[Ozone] Fix disabling keyboard in maximized mode

This CL:
- Fixes EventConverterEvdev::SetAllowedKeys() to block disallowed keys
- Dispatches a synthetic key release event for any blocked pressed keys when
  EventConverterEvdev::SetAllowedKeys() is called instead of waiting till the
  user releases the key.

BUG=465611
TEST=EventConverterEvdevImplTest.*

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

Cr-Commit-Position: refs/heads/master@{#320170}
ui/events/ozone/evdev/event_converter_evdev_impl.cc
ui/events/ozone/evdev/event_converter_evdev_impl.h
ui/events/ozone/evdev/event_converter_evdev_impl_unittest.cc