Languages

Menu
Sites
Language
Block HW back button

Hello everyone.

How can I block HW back button default behavour? For example, if I want to forbid user to go back until it save it's work.

When I use:

document.addEventListener('tizenhwkey', function(e) {

// my code here

}

it exectute "my code" block and then moves to previous page. And I want to stay on current page.

 

Thanks in advance.

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

Responses

2 Replies
Kirill Chuvilin
Have you modified the default tizenhwkey handler? Please see the original main.js file.
Maxim Smolyaninov
Thanks, so easy ^^