summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonghun Park <jh718.park@samsung.com>2013-06-13 11:30:27 +0900
committerJoonghun Park <jh718.park@samsung.com>2013-06-19 00:01:00 +0900
commit1c0a68d47a57ef4fa3eff18373e904a71c9ef881 (patch)
tree473f8631db84f17a9a6adbb87b87ddc680093cbb
parentb034c4d0ced3545b1b4433c02fd6e2ce6b90bc76 (diff)
downloadTemporaryStorage-1c0a68d47a57ef4fa3eff18373e904a71c9ef881.tar.gz
TemporaryStorage-1c0a68d47a57ef4fa3eff18373e904a71c9ef881.tar.bz2
TemporaryStorage-1c0a68d47a57ef4fa3eff18373e904a71c9ef881.zip
[TemporaryStorage] add eventHandler for tizen hardware backKey
Change-Id: I8eb5b79073ab3bf99f0628511e7b5091e9124e20
-rwxr-xr-xjs/main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 41930fd..adc2f70 100755
--- a/js/main.js
+++ b/js/main.js
@@ -29,6 +29,11 @@ $(document).ready(function() {
getStorage();
});
});
+
+ //add eventListener for tizenhwkey
+ document.addEventListener('tizenhwkey', function(e){
+ tizen.application.getCurrentApplication().exit();
+ });
});
/**