Package: effect
Module: Terminal
Keyboard key metadata for terminal input, including the key name and modifier state.
Signature
export interface Key {
/**
* The name of the key being pressed.
*/
readonly name: string
/**
* If set to `true`, then the user is also holding down the `Ctrl` key.
*/
readonly ctrl: boolean
/**
* If set to `true`, then the user is also holding down the `Meta` key.
*/
readonly meta: boolean
/**
* If set to `true`, then the user is also holding down the `Shift` key.
*/
readonly shift: boolean
}
Since v4.0.0