more general cleaning of main menu->graph shortcute, re #8452