I guess it would be quite nice to be able to listen to the Android hardware
keys as you can do in Java.

It doesn't seem to be possible right now and I haven't given it much
thought.

I found this Chromium bug:
https://code.google.com/p/chromium/issues/detail?id=270647


On Sat, Mar 15, 2014 at 6:16 PM, Kenneth Rohde Christiansen <
[email protected]> wrote:

> 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 ﹆﹆﹆
>



-- 
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

Reply via email to