<2011-05-14> contribution by Jobst Hoffmann, Benjamin Poniatowski, & Stephan Schulte. Upgrade the toggle compound mode, so that different actions are used when toggle is invoked depending on the current mode.
Authored by: vincentb1 2011-05-15
Parent: [r1080]
Child: [r1082]