modifierKeys Property

Summary

The keyboard modifier keys currently down (pressed).

Syntax
TypeScript
JavaScript
Object.defineProperty(InteractiveService.prototype, 'modifierKeys', 
	get: function() 
) 
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

Help Version 22.0.2021.9.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.