Layer.focused

Function/Meaning
Whether it is in focus
Type
Layer Class Properties
Explanation

Indicates whether it is in focus.
If true, it is in focus.
If it is false, it is not.