diff options
author | Joonghun Park <jh718.park@samsung.com> | 2013-06-13 11:28:16 +0900 |
---|---|---|
committer | Joonghun Park <jh718.park@samsung.com> | 2013-06-18 23:49:35 +0900 |
commit | bd17865d8c61fb1da5e2d5a379c11686905e833e (patch) | |
tree | 49795caeff56eab86211876593ae78b3406f53de | |
parent | 8b062deb9e85b3f1aed9b47cd6956c69ea7d5ef7 (diff) | |
download | OfflineClockImage-bd17865d8c61fb1da5e2d5a379c11686905e833e.tar.gz OfflineClockImage-bd17865d8c61fb1da5e2d5a379c11686905e833e.tar.bz2 OfflineClockImage-bd17865d8c61fb1da5e2d5a379c11686905e833e.zip |
[OfflineClockImage] add eventHandler for tizen hardware backKey
Change-Id: I52e386a6f1fa52eaee2768524270a9e2189c9f1a
-rwxr-xr-x | js/clock.js | 7 |
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);
|