KeyKeyboard key metadata for terminal input, including the key name and modifier state.
models
Source effect/Terminal.ts:6418 lines
export interface Key {
/**
* The name of the key being pressed.
*/
readonly Key.name: stringThe name of the key being pressed.
name: string
/**
* If set to `true`, then the user is also holding down the `Ctrl` key.
*/
readonly Key.ctrl: booleanIf set to true, then the user is also holding down the Ctrl key.
ctrl: boolean
/**
* If set to `true`, then the user is also holding down the `Meta` key.
*/
readonly Key.meta: booleanIf set to true, then the user is also holding down the Meta key.
meta: boolean
/**
* If set to `true`, then the user is also holding down the `Shift` key.
*/
readonly Key.shift: booleanIf set to true, then the user is also holding down the Shift key.
shift: boolean
}Referenced by 2 symbols