Commit ad1305c3 authored by Adam Barth's avatar Adam Barth

Wire up Android back button in SkyShell

The back button now triggers an event of type |back|.

R=eseidel@chromium.org, jackson@chromium.org

Review URL: https://codereview.chromium.org/1176373004.
parent 34e7b69a
...@@ -30,6 +30,11 @@ bool handleEvent(Event event) { ...@@ -30,6 +30,11 @@ bool handleEvent(Event event) {
return true; return true;
} }
if (event.type == "back") {
print("Pressed back button.");
return true;
}
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment