forked from verdnatura/salix-front
refs #6911: perf KeyCode is deprecated
This commit is contained in:
parent
8604c86828
commit
7ae05a3e52
|
@ -13,7 +13,7 @@ export default {
|
||||||
let that = this;
|
let that = this;
|
||||||
|
|
||||||
document.addEventListener('keyup', function (evt) {
|
document.addEventListener('keyup', function (evt) {
|
||||||
if (evt.keyCode === 13) {
|
if (evt.key === 'ENTER') {
|
||||||
that.onSubmit();
|
that.onSubmit();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue