mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-16 23:57:11 +00:00
use e.key instead of e.which
This commit is contained in:
parent
8b7a374313
commit
785edf4c9d
@ -38,7 +38,7 @@ class Communication extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
handleEnter(e, cb) {
|
handleEnter(e, cb) {
|
||||||
if (e.which === 13) {
|
if (e.key === 'Enter') {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
cb(e);
|
cb(e);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user