I am trying to submit my app to the TIzen Store but it keeps failing due to the back button not working right.
When I press the back button I get the followig alert box which is not what I expect to happen. I expect the app to exit.
The code is listed below...
document.addEventListener('tizenhwkey', function(e) {
alert(e.keyName);
if(e.keyName == "back"){
tizen.application.getCurrentApplication().exit();
}
if(e.KeyName == "menu"){
alert("MENU");
}
});