[OfflineClockImage] add eventHandler for tizen hardware backKey
authorJoonghun Park <jh718.park@samsung.com>
Thu, 13 Jun 2013 02:28:16 +0000 (11:28 +0900)
committerJoonghun Park <jh718.park@samsung.com>
Tue, 18 Jun 2013 14:49:35 +0000 (23:49 +0900)
Change-Id: I52e386a6f1fa52eaee2768524270a9e2189c9f1a

js/clock.js

index 89022a1..7a63fbf 100755 (executable)
@@ -1,3 +1,8 @@
+//add eventListener for tizenhwkey\r
+document.addEventListener('tizenhwkey', function(e){\r
+    tizen.application.getCurrentApplication().exit();\r
+});\r
+\r
 setInterval(function () {\r
     document.getElementById('clock').value = new Date();\r
-}, 1000);
\ No newline at end of file
+}, 1000);\r