From bd17865d8c61fb1da5e2d5a379c11686905e833e Mon Sep 17 00:00:00 2001 From: Joonghun Park Date: Thu, 13 Jun 2013 11:28:16 +0900 Subject: [PATCH] [OfflineClockImage] add eventHandler for tizen hardware backKey Change-Id: I52e386a6f1fa52eaee2768524270a9e2189c9f1a --- js/clock.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/clock.js b/js/clock.js index 89022a1..7a63fbf 100755 --- a/js/clock.js +++ b/js/clock.js @@ -1,3 +1,8 @@ +//add eventListener for tizenhwkey +document.addEventListener('tizenhwkey', function(e){ + tizen.application.getCurrentApplication().exit(); +}); + setInterval(function () { document.getElementById('clock').value = new Date(); -}, 1000); \ No newline at end of file +}, 1000); -- 2.7.4