1
0
mirror of https://github.com/24eme/signaturepdf.git synced 2023-08-25 09:33:08 +02:00

keydown pour que ça fonctionne aussi sur mobile

This commit is contained in:
Vincent LAURENT 2021-10-07 09:30:47 +02:00
parent e09738cd81
commit 74d198ed35

View File

@ -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');