From ce1cb85be9dfe173ba6564ccf79ec3753dada7cd Mon Sep 17 00:00:00 2001 From: Joonghun Park Date: Thu, 13 Jun 2013 11:29:48 +0900 Subject: [PATCH] [ImageRotation] add eventHandler for tizen hardware backKey Change-Id: I144c0f36bb832b349789c59206b34f75899b1936 --- js/main.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index ef545a0..c805245 100755 --- 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(); +}; -- 2.7.4