From f124e3607dbfc347fc9a96665f4836050e0c60df Mon Sep 17 00:00:00 2001 From: Emanuele Feliziani Date: Mon, 16 Oct 2023 10:00:34 +0200 Subject: [PATCH] Improve form submission detection with enter Signed-off-by: Emanuele Feliziani --- dist/autofill-debug.js | 2 +- dist/autofill.js | 2 +- src/DeviceInterface/initFormSubmissionsApi.js | 2 +- swift-package/Resources/assets/autofill-debug.js | 2 +- swift-package/Resources/assets/autofill.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/autofill-debug.js b/dist/autofill-debug.js index 3870ba6d0..5875c2c2a 100644 --- a/dist/autofill-debug.js +++ b/dist/autofill-debug.js @@ -9266,7 +9266,7 @@ function initFormSubmissionsApi(forms, matching) { const focusedForm = [...forms.values()].find(form => form.hasFocus(e)); focusedForm?.submitHandler('global keydown + Enter'); } - }); + }, true); /** * Global pointer down events diff --git a/dist/autofill.js b/dist/autofill.js index 30aeb47bb..f8f022768 100644 --- a/dist/autofill.js +++ b/dist/autofill.js @@ -5321,7 +5321,7 @@ function initFormSubmissionsApi(forms, matching) { const focusedForm = [...forms.values()].find(form => form.hasFocus(e)); focusedForm?.submitHandler('global keydown + Enter'); } - }); + }, true); /** * Global pointer down events diff --git a/src/DeviceInterface/initFormSubmissionsApi.js b/src/DeviceInterface/initFormSubmissionsApi.js index 91d2c9c03..7b5b7cfa4 100644 --- a/src/DeviceInterface/initFormSubmissionsApi.js +++ b/src/DeviceInterface/initFormSubmissionsApi.js @@ -24,7 +24,7 @@ export function initFormSubmissionsApi (forms, matching) { const focusedForm = [...forms.values()].find((form) => form.hasFocus(e)) focusedForm?.submitHandler('global keydown + Enter') } - }) + }, true) /** * Global pointer down events diff --git a/swift-package/Resources/assets/autofill-debug.js b/swift-package/Resources/assets/autofill-debug.js index 3870ba6d0..5875c2c2a 100644 --- a/swift-package/Resources/assets/autofill-debug.js +++ b/swift-package/Resources/assets/autofill-debug.js @@ -9266,7 +9266,7 @@ function initFormSubmissionsApi(forms, matching) { const focusedForm = [...forms.values()].find(form => form.hasFocus(e)); focusedForm?.submitHandler('global keydown + Enter'); } - }); + }, true); /** * Global pointer down events diff --git a/swift-package/Resources/assets/autofill.js b/swift-package/Resources/assets/autofill.js index 30aeb47bb..f8f022768 100644 --- a/swift-package/Resources/assets/autofill.js +++ b/swift-package/Resources/assets/autofill.js @@ -5321,7 +5321,7 @@ function initFormSubmissionsApi(forms, matching) { const focusedForm = [...forms.values()].find(form => form.hasFocus(e)); focusedForm?.submitHandler('global keydown + Enter'); } - }); + }, true); /** * Global pointer down events