OptionDown

From Director Online Wiki
Jump to: navigation, search

Description

Key property; determines whether the user is pressing the Alt key (Windows) or the Option key (Macintosh). Read-only.

This property returns TRUE if the user is pressing the Alt or Option key; otherwise, it returns FALSE.

Usage

-- Lingo syntax _key.optionDown

// JavaScript syntax _key.optionDown;

NOTE

The Director Help item for the optionDown is incorrect: the optionDown (Alt key) *does* work in a Windows projector without a non-modifier key being pressed.

This is the incorrect entry:

"In Windows, optionDown does not work in projectors if Alt is pressed without another nonmodifier key. Avoid using optionDown if you intend to distribute a movie as a Windows projector and need to detect only the modifier key press; use controlDown or shiftDown instead."