The keyboard modifier keys currently down (pressed).
Object.defineProperty(InteractiveService.prototype, 'modifierKeys',
get: function()
)
static modifierKeys: Keys; // read-only
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.
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET