focusedObject

returns the currently active control.

# Metadata

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

# Syntax

the focusedObject

# Examples

the focusedObject

put the focusedObject into objectToReturnTo

# Description

Use the focusedObject function to determine which object receives any keystrokes that are typed by the user or created by the type command.

The focusedObject can be any control on the current card. If no object has the focus, the focusedObject is the current card.

# Tags

ui,

# See

- **keyword:** control - **property:** ID - **command:** focus, type - **glossary:** object, property, current card, command, return, active control - **control structure:** function