docServerUserLandCom picture
Contents
Frontier Site

kb.controlKey

Syntax kb.controlKey ()

Params None required.

Action Determines whether the Mac Control 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 command 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 Control 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.
Notes To determine whether the Windows Control key is being pressed, use kb.cmdKey.


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.