Skip to content

Commit 6fa13f1

Browse files
committed
Use proper code values in KEYS constant 🤦🏻‍♂️
1 parent 1a7cbac commit 6fa13f1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/slider/Slider.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import InjectProgressBar from '../progress_bar/ProgressBar';
1111
import InjectInput from '../input/Input';
1212

1313
const KEYS = {
14-
ENTER: 13,
15-
ESC: 27,
16-
ARROW_UP: 38,
17-
ARROW_DOWN: 40,
14+
ENTER: 'Enter',
15+
ESC: 'Escape',
16+
ARROW_UP: 'ArrowUp',
17+
ARROW_DOWN: 'ArrowDown',
1818
};
1919

2020
const factory = (ProgressBar, Input) => {

0 commit comments

Comments
 (0)