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.

Returns
Returns true if the Alt key is pressed. Returns false if not.

◆ IsControlPressed

bool KeyModifiers::IsControlPressed ( )
slot

Check if the Ctrl key is pressed.

Returns
Returns true if the Ctrl key is pressed. Returns false if not.

◆ IsShiftPressed

bool KeyModifiers::IsShiftPressed ( )
slot

Check if the Shift key is pressed.

Returns
Returns true if the Shift key is pressed. Returns false if not.

◆ IsSpacePressed

bool KeyModifiers::IsSpacePressed ( )
slot

Check if the space key is pressed.

Returns
Returns true if the space key is pressed. Returns false if not.