Page 1 of 1

How to create an action for the phone menu button ?

PostPosted: Thu Sep 24, 2015 12:07 pm
by David de Argentina
hi all

Does any know how to create an action for the phone menu button ?

Thanks in advance,

David de Argentina

Re: How to create an action for the phone menu button ?

PostPosted: Thu Sep 24, 2015 4:47 pm
by Neosoft Support
None of my Android devices have a menu button :( , but you can try adding something like this to your start up action:

BeginJS
document.addEventListener("menubutton", menuButtonClick, true);
EndJS

Then add a function called menuButtonClick somewhere. For example:

function menuButtonClick() {
alert('Menu button pressed.');
}