Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


UnSetKey

Built-in

SYNTAX

UnSetKey [[modifierKey-]…key[-[modifierKey-]…key]…]

DESCRIPTION

The UnSetKey command releases a key or key sequence from a command equivalency you set. UnSetKey reverses the action of the SetKey command.

INPUT

None

OUTPUT

None

STATUS

UnSetKey can return the following status codes:

0

no errors

1

syntax error

2

execution error; invalid input

PARAMETERS

[modifierKey-]…key

Specifies the key or combination of keys to release from a keyboard equivalency previously set with SetKey.

OPTIONS

None

EXAMPLES

If the key sequence Q-D is set to execute the DeleteEndOfLine primitive, then the command line

UnSetKey Q-D

releases the keys Q-D from that action. However, the Q key is still a meta-key, and if you press it, MPW still goes into a wait state while it anticipates another keystroke. You must explicitly release it by also executing the following code line:

UnSetKey Q

SEE ALSO

SetKey

 
 


Last Updated July 2000