lock cursor

Sets the lockCursor property to true, preventing the cursor shape from changing.

# Metadata

Platforms: desktop, server OS: mac, windows, linux Introduced: 1.0 Security:

# Syntax

lock cursor

# Examples

lock cursor

if the mouse is not down then lock cursor

# Description

Use the lock cursor command to make the cursor retain a specified appearance until you change it.

The lock cursor command sets the lockCursor property to true.

Set the cursor property to change the cursor.

# Tags

ui,

# See

- **command:** lock moves, lock screen, unlock cursor, lock colorMap - **glossary:** property, command, appearance - **property:** lockCursor, cursor