• Trent Apted's avatar
    CrOS: Consolidate keydown handlers in the audio player. · be2b45dd
    Trent Apted authored
    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: default avatarLuciano Pacheco <lucmult@chromium.org>
    Commit-Queue: Trent Apted <tapted@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#602965}
    be2b45dd
audio_player.js 13.5 KB