[issue#]N_SE-42328, N_SE-42377, N_SE-42385
[Problem] when menu key is clicked, the app act as if back key is clicked
[solution] add the checking code of hardware backkey event's keyName attribute
Change-Id: I0d31d80fea425c27318d29b9bdc1cfd4b6f67eaa
window.onload = function() {
//add eventListener for tizenhwkey
- document.addEventListener('tizenhwkey', function(e){
- tizen.application.getCurrentApplication().exit();
+ document.addEventListener('tizenhwkey', function(e) {
+ if(e.keyName == "back")
+ tizen.application.getCurrentApplication().exit();
});
deviceOrientationEvents();