Android's back key - ingame function

Greetings.

I've been working on my first somewhat serious project on RMMV and after toying around a bit with the game on my phone I realised it could be really useful if I could use the physical back key of my phone for any function ingame.


Currently I have it so it doesn't force exit the game, but that's as far as my faint JS knowledge allowed me.

Is there any way to bind the android back key to the 'escape' object from the Input function on rpg_core.js?

Thanks a bunch.
Not all android phones have a physical back button on the phone, on mine its part of the screen. It hides itself whenever I do something full screen. It would make it harder to play your game on phones like that, unless you can make it stay up.
Oh yeah, I totally forgot about that, as all the android phones I have available have the physical key. I guess deactivating the key or adding a confirmation query will have to do then...

Thanks for the headsup!
Azgraal: How did you accomplish getting the back key not to force quit? I've been struggling with this for hours. 


Thanks in advance!


Nevermind - I got there in the end 😛

Original thread: https://forums.rpgmakerweb.com/threads/androids-back-key-ingame-function.56003/