lock messages

Sets the lockMessages property to true, preventing setProp triggers, getProp calls, and certain messages from being sent.

# Metadata

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

# Syntax

lock messages

# Examples

lock messages

if the commandKey is down then lock messages

# Description

Use the lock messages command when a handler performs an action (such as opening a stack) and you want to speed up access by preventing unnecessary navigation messages (such as openStack) from being sent.

When all pending handlers are finished executing, the lockMessages property is set back to false.

# Tags

# See