onKeyPress and onKeyDown typings (#9316)

* Update Checkbox.tsx

* Update button.tsx
This commit is contained in:
Yury Kozyrev 2018-02-09 03:35:54 +01:00 committed by Wei Zhu
parent 3ffe718476
commit 1e92ff8efd
2 changed files with 4 additions and 0 deletions

View File

@ -47,6 +47,8 @@ export interface ButtonProps {
onClick?: React.FormEventHandler<any>;
onMouseUp?: React.FormEventHandler<any>;
onMouseDown?: React.FormEventHandler<any>;
onKeyPress?: React.KeyboardEvent<any>;
onKeyDown?: React.KeyboardEvent<any>;
tabIndex?: number;
loading?: boolean | { delay?: number };
disabled?: boolean;

View File

@ -15,6 +15,8 @@ export interface AbstractCheckboxProps {
onChange?: React.ChangeEventHandler<HTMLInputElement>;
onMouseEnter?: React.MouseEventHandler<any>;
onMouseLeave?: React.MouseEventHandler<any>;
onKeyPress?: React.KeyboardEvent<any>;
onKeyDown?: React.KeyboardEvent<any>;
value?: any;
tabIndex?: number;
name?: string;