Return to the main menu on right click from load, save, prefs, etc.

Alternative implementation of #289.