[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: I9848d9a2ba3d596bdf421569bc0b37d444d549ca
//add eventListener for tizenhwkey\r
-document.addEventListener('tizenhwkey', function(e){\r
- tizen.application.getCurrentApplication().exit();\r
+document.addEventListener('tizenhwkey', function(e) {\r
+ if(e.keyName == "back")\r
+ tizen.application.getCurrentApplication().exit();\r
});\r
\r
setInterval(function () {\r