diff --git a/CHANGELOG.md b/CHANGELOG.md index 01cdfb07e2f..3400c65ca20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [`master`](https://github.com/elastic/eui/tree/master) +- Added typings for keyCodes ([#988](https://github.com/elastic/eui/pull/988)) - Changed `EuiXYChart` components exports to `/experimental` subfolder ([#975](https://github.com/elastic/eui/pull/975)) - Added beta version of `EuiXYChart` and associated components ([#309](https://github.com/elastic/eui/pull/309)) diff --git a/src/services/index.d.ts b/src/services/index.d.ts index 42a6bb261e0..ec6704fc16c 100644 --- a/src/services/index.d.ts +++ b/src/services/index.d.ts @@ -1,2 +1,3 @@ /// +/// /// diff --git a/src/services/key_codes.d.ts b/src/services/key_codes.d.ts new file mode 100644 index 00000000000..a000acb4a48 --- /dev/null +++ b/src/services/key_codes.d.ts @@ -0,0 +1,15 @@ + +declare module '@elastic/eui' { + export enum keyCodes { + ENTER = 13, + SPACE = 32, + ESCAPE = 27, + TAB = 9, + BACKSPACE = 8, + + DOWN = 40, + UP = 38, + LEFT = 37, + RIGHT = 39, + }; + } \ No newline at end of file