Skip to content
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.353 kb
( function () {
window.addEventListener( 'tizenhwkey', function( ev ) {
if( ev.keyName == "back" ) {
var page = document.getElementsByClassName( 'ui-page-active' )[0],
pageid = page ? page.id : "";
if( pageid === "main" ) {
tizen.application.getCurrentApplication().exit();
} else {
window.history.back();
}
}
} );
} () );
Jump to Line
Something went wrong with that request. Please try again.