Harmony
Scripting Interface Documentation
KeyModifiers Class Reference

The KeyModifiers JavaScript global object. Query key modifiers. More...

Public Slots

bool IsShiftPressed ()
 Check if the Shift key is pressed. More...
 
bool IsControlPressed ()
 Check if the Ctrl key is pressed. More...
 
bool IsAlternatePressed ()
 Check if the Alt key is pressed. More...
 
bool IsSpacePressed ()
 Check if the space key is pressed. More...
 

Detailed Description

The KeyModifiers JavaScript global object. Query key modifiers.

Member Function Documentation

◆ IsAlternatePressed

bool KeyModifiers::IsAlternatePressed ( )
slot

Check if the Alt key is pressed.

◆ IsControlPressed

bool KeyModifiers::IsControlPressed ( )
slot

Check if the Ctrl key is pressed.

◆ IsShiftPressed

bool KeyModifiers::IsShiftPressed ( )
slot

Check if the Shift key is pressed.

◆ IsSpacePressed

bool KeyModifiers::IsSpacePressed ( )
slot

Check if the space key is pressed.