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:
@@ -30,6 +30,11 @@ bool handleEvent(Event event) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (event.type == "back") {
|
||||
print("Pressed back button.");
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user