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.
This commit is contained in:
Adam Barth
2015-06-11 14:33:01 -07:00
parent 34e7b69a79
commit ad1305c35b

View File

@@ -30,6 +30,11 @@ bool handleEvent(Event event) {
return true;
}
if (event.type == "back") {
print("Pressed back button.");
return true;
}
return false;
}