From a047ca1d6dbbb05f286ec8b8a533ee84ed293a00 Mon Sep 17 00:00:00 2001 From: Conrad Chan Date: Wed, 1 Feb 2017 19:50:03 -0800 Subject: [PATCH] add onInputKeyDown to react-select --- react-select/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react-select/index.d.ts b/react-select/index.d.ts index e59322d0dc..a7c0f2f17a 100644 --- a/react-select/index.d.ts +++ b/react-select/index.d.ts @@ -246,6 +246,10 @@ declare namespace ReactSelectClass { * onInputChange handler: function (inputValue) {} */ onInputChange?: (inputValue: string) => void; + /** + * onInputKeyDown handler: function (keyboardEvent) {} + */ + onInputKeyDown?: (event: KeyboardEvent) => void; /** * fires when the menu is scrolled to the bottom; can be used to paginate options */