From 74d198ed35e45ceebbd770613e87de12e44f20b2 Mon Sep 17 00:00:00 2001 From: Vincent LAURENT Date: Thu, 7 Oct 2021 09:30:47 +0200 Subject: [PATCH] =?UTF-8?q?keydown=20pour=20que=20=C3=A7a=20fonctionne=20a?= =?UTF-8?q?ussi=20sur=20mobile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/app.js b/public/js/app.js index 60202a8..9a0e81c 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -289,7 +289,7 @@ loadingTask.promise.then(function(pdf) { bootstrap.Tab.getOrCreateInstance(document.querySelector('#modalAddSvg #nav-tab button:first-child')).show(); }) - document.getElementById('input-text-signature').addEventListener('keypress', function(event) { + document.getElementById('input-text-signature').addEventListener('keydown', function(event) { document.getElementById('btn_modal_ajouter').removeAttribute('disabled'); if(event.key == 'Enter') { document.getElementById('btn_modal_ajouter').removeAttribute('disabled');