Skip to content

Commit 55b556b

Browse files
authored
update README with deprecation warning
1 parent 3cba4d5 commit 55b556b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
**DEPRECATION WARNING**
2+
3+
The [`which`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/which) and [`keyCode`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode) properties are being deprecated by the browsers. Even though it still might work, the usage is not encouraged anymore.
4+
5+
You would rather use the new [`key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) or [`code`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code) attributes in `KeyboardEvent`.
6+
17
keycode.js
28
===
39

0 commit comments

Comments
 (0)