Error getting tags :
error 404Error getting tags :
error 404 undoKey | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
undoKey
Basics
Expander triangle
Type
Message
Syntax
undoKey
Introduced
1.0
Environment
Desktop,Web
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Sent when the user presses the key combination equivalent to the "Undo" menu item.
Examples

on undoKey
if the optionKey is down then revert -- to last saved version
else pass undoKey
end undoKey

Additional Comments
Expander triangle

Handle the undoKey message if you want to change the normal Undo process, or prevent use of the Undo keyboard equivalent without changing the menu.

Comments:

The Revolution development environment traps the undoKey message, unless "Suspend Revolution UI" is turned on in the Development menu. This means that the undoKey message is not received by a stack if it's running in the development environment.

The undoKey message is sent when the user presses Command-Z (on Mac OS systems), Control-Z (on Windows systems), Alt-Backspace (on Unix systems), or the keyboard Undo key.

The message is sent to the active (focused) control, or to the current card if no control is focused.

User Comments
Expander triangle