summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonghun Park <jh718.park@samsung.com>2013-06-13 11:28:16 +0900
committerJoonghun Park <jh718.park@samsung.com>2013-06-18 23:49:35 +0900
commitbd17865d8c61fb1da5e2d5a379c11686905e833e (patch)
tree49795caeff56eab86211876593ae78b3406f53de
parent8b062deb9e85b3f1aed9b47cd6956c69ea7d5ef7 (diff)
downloadOfflineClockImage-bd17865d8c61fb1da5e2d5a379c11686905e833e.tar.gz
OfflineClockImage-bd17865d8c61fb1da5e2d5a379c11686905e833e.tar.bz2
OfflineClockImage-bd17865d8c61fb1da5e2d5a379c11686905e833e.zip
[OfflineClockImage] add eventHandler for tizen hardware backKey
Change-Id: I52e386a6f1fa52eaee2768524270a9e2189c9f1a
-rwxr-xr-xjs/clock.js7
1 files changed, 6 insertions, 1 deletions
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);