From 4c7a4449ca01a373d589359c2babdfb33e41cb0c Mon Sep 17 00:00:00 2001 From: Joonghun Park Date: Thu, 20 Jun 2013 22:51:44 +0900 Subject: [PATCH] [Title] revise hardware backkey eventHandler to identify the event keyName "bac$ [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 --- js/clock.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/clock.js b/js/clock.js index 7a63fbf..6386f8f 100755 --- a/js/clock.js +++ b/js/clock.js @@ -1,6 +1,7 @@ //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(); }); setInterval(function () { -- 2.7.4