Question
Cancel back button action on android under the air
Hello,
I do the following, but anyway when I touch back button the topmost view is popped from the navigator's stack.
| private function key_down_handler(event: KeyboardEvent): void | |||||
| { | |||||
| if (event.keyCode == Keyboard.BACK) | |||||
| { | |||||
| event.stopPropagation(); | |||||
| event.stopImmediatePropagation(); | |||||
| event.preventDefault(); | |||||
| } | |||||
| } |
How to prevent this?
Thanx in advance.
