focusedObject

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the focusedObject
focusedObject()
Summary

Returns the currently focused control.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the focusedObject
put the focusedObject into objectToReturnTo
Values
NameTypeDescription
return

The focusedObject function returns the long ID property of the object.

RelatedKeyword: control
Property: ID
Command: focus, type
Glossary: object, property, current card, command, return, active control
Control Structure: function
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.

Tagsui