From ad1305c35b843bbf03cb9a419e11088300d63ffe Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Thu, 11 Jun 2015 14:33:01 -0700 Subject: [PATCH] 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. --- examples/raw/hello_world.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/raw/hello_world.dart b/examples/raw/hello_world.dart index d668503609..4264abf899 100644 --- a/examples/raw/hello_world.dart +++ b/examples/raw/hello_world.dart @@ -30,6 +30,11 @@ bool handleEvent(Event event) { return true; } + if (event.type == "back") { + print("Pressed back button."); + return true; + } + return false; }