modifierKeys Property (InteractiveService)

Summary

The keyboard modifier keys currently down (pressed).

Syntax

JavaScript Syntax
Object.defineProperty(InteractiveService.prototype, 'modifierKeys', 
	get: function() 
) 
TypeScript Syntax
static modifierKeys: Keys; // read-only

Property Value

The keyboard modifier keys currently down (pressed).

Remarks

Keys is a flag enumeration and more than one key can be pressed at any given time. Therefore, use a logical AND operation to detect for the desired value. For instance, to detect if the CTRL key is pressed, use:

if ((lt.Controls.ImageViewerInteractiveService.modifierKeys & lt.Controls.Keys.control) === lt.Controls.Keys.control) { 
// CTRL key is pressed 
} 

Refer to DeregisterGlobalModifierKeys for more information.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Controls Assembly
Click or drag to resize