Skip to content

Commit

Permalink
Add typings for keyCodes (#988)
Browse files Browse the repository at this point in the history
* Add typings for keyCodes

* Add correct PR #

* put back newline accidentally deleted
  • Loading branch information
stacey-gammon authored Jul 10, 2018
1 parent aab5f0d commit a776a94
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
- Added `size` prop to `EuiIconTip` ([987](https://github.com/elastic/eui/pull/987))
Expand Down
1 change: 1 addition & 0 deletions src/services/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/// <reference path="./alignment.d.ts" />
/// <reference path="./key_codes.d.ts" />
/// <reference path="./popover/index.d.ts" />
15 changes: 15 additions & 0 deletions src/services/key_codes.d.ts
Original file line number Diff line number Diff line change
@@ -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,
};
}

0 comments on commit a776a94

Please sign in to comment.