commit | ccad60c435f44c43ba7b7f51ed46aa289c393e0b | [log] [tgz] |
---|---|---|
author | Antonio Gomes <tonikitoo@igalia.com> | Fri Jan 12 17:50:37 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 12 17:50:37 2018 |
tree | 52ce2440a7fe298d9d5bf331ba57f6de99f3e25b | |
parent | 4de8e3ad8a9b72d2464384f708b5b43a57baa01d [diff] |
[ozone/wayland] Properly dispatch events for modifier keys When a modifier key is pressed, the ui::KeyboardEvent instance must contain its modifier flags set, which is not the case for Ozone/Wayland today. CL fixes this by mimic'ing some of the existing logic in KeyboardEvDev::DispatchKey. CL also moves ::EventFlagToEvdevModifier from keyboard_evdev.cc to ui/events/event_modifiers.h|cc, as a static method named ::GetModifierFromEventFlag (analogously to the existing ::GetEventFlagFromModifier). This way, the method can be used from Ozone/Wayland code. BUG=578890 Change-Id: I9608d23f4e0bc22dd1a5a1c74b4a55828753c330 Reviewed-on: https://chromium-review.googlesource.com/850772 Reviewed-by: Robert Kroeger <rjkroege@chromium.org> Reviewed-by: Sadrul Chowdhury <sadrul@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#528991}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .