KeyboardEventArgs.keyCode Property

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

Description

Gets the keyboard key.

Syntax

"keyboardEventArgs_var" is a variable referencing a KeyboardEventArgs object.

# Get the value of the property.
propertyValue = keyboardEventArgs_var.keyCode
"keyboardEventArgs_var" is a variable referencing a KeyboardEventArgs object.
#include <Core/UserInterface/KeyboardEventArgs.h>

// Get the value of the property.
KeyCodes propertyValue = keyboardEventArgs_var->keyCode();

Property Value

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

Version

Introduced in version August 2014