kb.optionKey

Syntax kb.optionKey ()

Params None required.

Action Determines whether the Windows Alt key or Mac Option key is now being pressed.

Returns True if the key is being pressed, false otherwise.

Examples Locate a script called examples.WatchKeys. Copy it. Now use the UserLand menu's Agents sub-menu to Open Agents Table. Now paste the script using the Paste option from the Edit menu or by typing Command-V. If background processes are turned on, you
will now be told every time Frontier detects you pressing the Option key.
When you are done experimenting, be sure to delete system.agents.WatchKeys; otherwise, you'll find yourself being interrupted often when you are using Frontier.

Discuss