I am not really sure whether we have such hooks yet, but we could look into
it.
I guess back actually modifies the history right now? ie like in a browser.
If that is the case you can control that easily
window.onhashchange = function() {
// ...
// Change to the main location.
top.location = "#main";
}
// Set a default hash so that the hashchange event will be fired when
pressing on forward or back.
top.location = "#main";
On Sat, Mar 15, 2014 at 5:47 AM, Misu Popescu <[email protected]>wrote:
> Hello,
>
> I've used Crosswalk Canary to implement an Android game in JavaScript and
> I was wondering if it is possible to detect when the user presses one of
> the phones buttons (like the HOME and the BACK buttons). A syntax example
> will be extremely helpful.
>
> Thanks,
>
> Misu Popescu
>
> _______________________________________________
> Crosswalk-help mailing list
> [email protected]
> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>
>
--
Kenneth Rohde Christiansen
Web Platform Architect, Intel Corporation.
Phone +45 4294 9458 ﹆﹆﹆
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help