KeyboardEvent.sender Property

Parent Object: KeyboardEvent
Defined in namespace "adsk::core" and the header file is <Core/UserInterface/KeyboardEvent.h>

Description

The object that is firing the event. For example, in the case of a command input event this will return the command.

Syntax

"keyboardEvent_var" is a variable referencing a KeyboardEvent object.

# Get the value of the property.
propertyValue = keyboardEvent_var.sender
"keyboardEvent_var" is a variable referencing a KeyboardEvent object.
#include <Core/UserInterface/KeyboardEvent.h>

// Get the value of the property.
Ptr<Base> propertyValue = keyboardEvent_var->sender();

Property Value

This is a read only property whose value is a Base.

Version

Introduced in version August 2014