Sets the lockRecent property to true, preventing cards from being added to the recent cards.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
lock recent
# Examples
lock recent
if not the hilite of button "Advanced" then lock recent
# Description
Use the lock recent command to move among cards without disturbing the recent cards.
When either the user or a handler navigates to a card, that card is placed on the recent cards list, and the user can return to it with the go command or the "Go Recent" item in the View menu. If a handler visits a card that is not normally seen by the user, you can use the lock recent command to prevent the user from inadvertently going to that card later.
The lock recent command sets the lockRecent property to true. When all pending handlers are finished execute, the lockRecent property is set back to false.
# Tags
# See
- **keyword:** card, menu - **property:** lockRecent - **command:** lock messages, unlock recent - **object:** card - **glossary:** property, handler, recent cards, command, execute