FocusManager.defaultPushButtonEnabled

Availability

Flash Player 6.0.79.

Edition

Flash MX 2004.

Usage

focusManager.defaultPushButtonEnabled

Description

Property; a Boolean value that determines if keyboard handling of the default push button is turned on (true), or not (false). Setting defaultPushButtonEnabled to false allows a component to receive the Return or Enter key and handle it internally. You must re-enable default push button handling by watching the component's onKillFocus() method (see MovieClip.onKillFocus in ActionScript Dictionary Help) or focusOut event. The default value is true.

Example

The following code disables default push button handling:

focusManager.defaultPushButtonEnabled = false;