HW key event is not work after history back

HW key event is not work after history back

BY 18 Nov 2013 Web Application Development

There are event handler and link like as below.

 

1. index.html

document.addEventListener(‘tizenhwkey’, function(e) {
  if(e.keyName == “back”){
     tizen.application.getCurrentApplication().exit();
  }
});

window.open(“new_window.html, “_self”);

 

2. new_window.html

document.addEventListener(‘tizenhwkey’, function(e) {
  if(e.keyName == “back”){
     history.back();
  }
});

 

I opened new HTML page using “window.open” and go back to index.html when back key event fired.

But back key event is not fired on “index.html”

 

How can I fix this issue?

Written by