Languages

Menu
Sites
Language
How to bind device buttons (back, menu)

Hello.

How to bind functionality with device "back", "menu" and, maby, "home" buttons?

 

Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

3 Replies
Lakshmi Grandhi
Hi , document.addEventListener('tizenhwkey', function(e) { if(e.keyName == "back") tizen.application.getCurrentApplication().exit(); if(e.KeyName == "menu") });
Sergey
Thanx a lot! Where the documentation about it?
Lakshmi Grandhi
The code is generated by sample Web-Application created from ecllipse IDE