语言

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

Hello.

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

 

编辑者为: Brock Boland 17 3月, 2014 原因: Paragraph tags added automatically from tizen_format_fix module.

响应

3 回复
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