projects
/
samples
/
web
/
ImageRotation.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d6f1f8
)
[ImageRotation] add eventHandler for tizen hardware backKey
author
Joonghun Park
<jh718.park@samsung.com>
Thu, 13 Jun 2013 02:29:48 +0000
(11:29 +0900)
committer
Joonghun Park
<jh718.park@samsung.com>
Tue, 18 Jun 2013 14:58:15 +0000
(23:58 +0900)
Change-Id: I144c0f36bb832b349789c59206b34f75899b1936
js/main.js
patch
|
blob
|
history
diff --git
a/js/main.js
b/js/main.js
index
ef545a0
..
c805245
100755
(executable)
--- a/
js/main.js
+++ b/
js/main.js
@@
-20,4
+20,11
@@
function deviceOrientationEvents() {
}
}
-window.onload = function() {deviceOrientationEvents();};
+window.onload = function() {
+ //add eventListener for tizenhwkey
+ document.addEventListener('tizenhwkey', function(e){
+ tizen.application.getCurrentApplication().exit();
+ });
+
+ deviceOrientationEvents();
+};