/** * Key schema. * * @export */ export interface IKey { /** * The keyCode associated to the current `key`. */ keyCode: number; /** * The code associated to the current `key`. */ code: string; /** * The friendly `name` of the current `key`. * */ name: string; } /** * Key modifier schema. * * @export */ export interface IKeyModifier extends IKey { /** * The friendly `name` of the current modifier. * */ name: 'Shift' | 'Control' | 'Alt'; } /** * A complete collection of `keys` that can be used to emit fake events for testing. * * @export */ export declare class Key implements Record { /** * Metadata for key `q`. * */ static q: IKey; /** * Metadata for key `w`. * */ static w: IKey; /** * Metadata for key `e`. * */ static e: IKey; /** * Metadata for key `r`. * */ static r: IKey; /** * Metadata for key `t`. * */ static t: IKey; /** * Metadata for key `y`. * */ static y: IKey; /** * Metadata for key `u`. * */ static u: IKey; /** * Metadata for key `i`. * */ static i: IKey; /** * Metadata for key `o`. * */ static o: IKey; /** * Metadata for key `p`. * */ static p: IKey; /** * Metadata for key `a`. * */ static a: IKey; /** * Metadata for key `s`. * */ static s: IKey; /** * Metadata for key `d`. * */ static d: IKey; /** * Metadata for key `f`. * */ static f: IKey; /** * Metadata for key `g`. * */ static g: IKey; /** * Metadata for key `h`. * */ static h: IKey; /** * Metadata for key `j`. * */ static j: IKey; /** * Metadata for key `k`. * */ static k: IKey; /** * Metadata for key `l`. * */ static l: IKey; /** * Metadata for key `z`. * */ static z: IKey; /** * Metadata for key `x`. * */ static x: IKey; /** * Metadata for key `c`. * */ static c: IKey; /** * Metadata for key `v`. * */ static v: IKey; /** * Metadata for key `b`. * */ static b: IKey; /** * Metadata for key `n`. * */ static n: IKey; /** * Metadata for key `m`. * */ static m: IKey; /** * Metadata for key `Q`. * */ static Q: IKey; /** * Metadata for key `W`. * */ static W: IKey; /** * Metadata for key `E`. * */ static E: IKey; /** * Metadata for key `R`. * */ static R: IKey; /** * Metadata for key `T`. * */ static T: IKey; /** * Metadata for key `Y`. * */ static Y: IKey; /** * Metadata for key `U`. * */ static U: IKey; /** * Metadata for key `I`. * */ static I: IKey; /** * Metadata for key `O`. * */ static O: IKey; /** * Metadata for key `P`. * */ static P: IKey; /** * Metadata for key `A`. * */ static A: IKey; /** * Metadata for key `S`. * */ static S: IKey; /** * Metadata for key `D`. * */ static D: IKey; /** * Metadata for key `F`. * */ static F: IKey; /** * Metadata for key `G`. * */ static G: IKey; /** * Metadata for key `H`. * */ static H: IKey; /** * Metadata for key `J`. * */ static J: IKey; /** * Metadata for key `K`. * */ static K: IKey; /** * Metadata for key `L`. * */ static L: IKey; /** * Metadata for key `Z`. * */ static Z: IKey; /** * Metadata for key `X`. * */ static X: IKey; /** * Metadata for key `C`. * */ static C: IKey; /** * Metadata for key `V`. * */ static V: IKey; /** * Metadata for key `B`. * */ static B: IKey; /** * Metadata for key `N`. * */ static N: IKey; /** * Metadata for key `M`. * */ static M: IKey; /** * Metadata for key `Shift`. * */ static Shift: IKeyModifier; /** * Metadata for key `Control`. * */ static Control: IKeyModifier; /** * Metadata for key `Alt`. * */ static Alt: IKeyModifier; /** * Metadata for key `Enter`. * */ static Enter: IKey; /** * Metadata for key `ArrowLeft`. * */ static ArrowLeft: IKey; /** * Metadata for key `ArrowDown`. * */ static ArrowDown: IKey; /** * Metadata for key `ArrowRight`. * */ static ArrowRight: IKey; /** * Metadata for key `ArrowUp`. * */ static ArrowUp: IKey; /** * Metadata for key `Space`. * */ static Space: IKey; /** * Metadata for key `Tab`. * */ static Tab: IKey; /** * Metadata for key `Escape`. * */ static Escape: IKey; /** * Metadata for key `Backspace`. * */ static Backspace: IKey; }