From 279523f18d03c69323874115c31ca5970150b0f0 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 13 Apr 2021 13:52:49 +0200 Subject: [PATCH] Add focus on the alert for keyboard navigation --- tarteaucitron.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tarteaucitron.js b/tarteaucitron.js index 9933244..4e1369a 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -1234,6 +1234,10 @@ var tarteaucitron = { } //end ie compatibility + if (document.getElementById('tarteaucitronPersonalize2') !== null) { + document.getElementById('tarteaucitronPersonalize2').focus(); + } + window.dispatchEvent(tacOpenAlertEvent); }, "closeAlert": function () {