CrOS: Consolidate keydown handlers in the audio player.
Currently media keys break in tablet mode, but a 'space' keypress in the same mode works fine. Media keys are in a separate handler that probably lost its plumbing when shadow dom was introduced in r592709. Merge the two key handlers into the one that works, and add a test for 'MediaPlayPause'. Adds a mapping for '[' and ']' to control tracks since its easier to test and there's no prior mapping. (Cmd+Shift+][ are next/previous tab in Chrome Mac). Bug: 899094 Change-Id: Ie57b9b0d497b1996566ea3a1842309f0191d8bff Reviewed-on: https://chromium-review.googlesource.com/c/1298820Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#602965}
Showing
Please register or sign in to comment