From 7ae05a3e52fcb5d15ea47695abe02723e10358cc Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Fri, 22 Mar 2024 06:35:47 +0000 Subject: [PATCH] refs #6911: perf KeyCode is deprecated --- src/boot/qformMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index 5e06497c5..00830375a 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -13,7 +13,7 @@ export default { let that = this; document.addEventListener('keyup', function (evt) { - if (evt.keyCode === 13) { + if (evt.key === 'ENTER') { that.onSubmit(); } });