By calling BackButton.override();and then connecting to the event backKeyDown, I can click the "Back" button to register.
But does not exist MenuButton.override();. In addition, when connected to a menuKeyDownbutton is not recorded.
Here is my (non-functional) code. What am I missing?
<script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
<script type="text/javascript" charset="utf-8">
document.addEventListener("deviceready", function() {
alert('initialized');
}, false);
document.addEventListener("menuKeyDown", function() {
alert('menu_pressed');
}, false);
</script>
source
share