window.location and HW keys

window.location and HW keys

BY 26 Sep 2013 Web Application Development

Hi!

As a proof of concept I would like to show that a given mobile web site can easily be packaged as a Tizen web application. Three months ago I could easily do that on Tizen 2.1 by using a simple script directly in the head of my index page :

<script type=”text/javascript”>

window.location=”http://myURL”;

</script>

Today I’m trying to do the same on Tizen 2.2, but I can’t find how to handle the HW keys. Wherever I put the related scripts catching the HW key events (before or after the script above), they never get called, whereas they work fine in the very same test page if I just remove the window.location part.

What do you advise to fix this ?

Thanks a lot,

Didier

Written by