modifierKeys Property


The keyboard modifier keys currently down (pressed).


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).


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.


Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly