K-L > Key.isToggled

Key.isToggled

Syntax

Key.isToggled(keycode)

Arguments

keycode The key code for Caps Lock (20) or Num Lock (144).

Description

Method; returns true if the Caps Lock or Num Lock key is activated (toggled). On the Macintosh, the key code values for these keys are identical.

Player

Flash 5 or later.