Home > @i2analyze/notebook-sdk > commands > IModifierKeys
commands.IModifierKeys interface
The state of the keyboard modifier keys at the point at which a command was triggered.
Signature:
interface IModifierKeys
Introduced: version 1.10
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| alt |
readonly
| boolean | Indicates whether the Alt key (Option on macOS) was held when the command was triggered. |
| ctrl |
readonly
| boolean | Indicates whether the Ctrl key was held when the command was triggered. |
| meta |
readonly
| boolean | Indicates whether the meta key (Command on macOS, the Windows key on Windows) was held when the command was triggered. |
| shift |
readonly
| boolean | Indicates whether the Shift key was held when the command was triggered. |