Android Right Mouse Button

Usually the right mouse button mimics the back button, allowing normal apps to prompt the user what to do next (quit or otherwise).

In SDL, the right mouse button seems to force-close the app and returns to the home screen. No SDL_QUIT is triggered.

Is there any way intercept this behaviour like normal apps do?