Interpret Escape as BROWSER_BACK to match Starboard specification.
Bug: 394311841 Test: Existing UT Change-Id: I62e22c0ee654d4661c858dfe15eea1c2ec69d193 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6270556 Commit-Queue: Shawn Quereshi <shawnq@google.com> Reviewed-by: Antonio Rivera <antoniori@google.com> Cr-Commit-Position: refs/heads/main@{#1420641}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
3c62738749
commit
7e30fffdd3
@ -35,6 +35,8 @@ constexpr auto kSbKeyToDomCodeMap = base::MakeFixedFlatMap<SbKey, ui::DomCode>({
|
||||
{kSbKeyLeft, ui::DomCode::ARROW_LEFT},
|
||||
{kSbKeyRight, ui::DomCode::ARROW_RIGHT},
|
||||
{kSbKeyBack, ui::DomCode::BROWSER_BACK},
|
||||
{kSbKeyEscape, ui::DomCode::BROWSER_BACK},
|
||||
|
||||
|
||||
// Keys which are used by the Cast SDK when the DPAD UI is enabled.
|
||||
{kSbKeyMediaPlayPause, ui::DomCode::MEDIA_PLAY_PAUSE},
|
||||
|
Reference in New Issue
Block a user