Best regards. It turns out that I use the following quick key functionality:
$(document).ready(function () {
$(document).on('keydown', 'body', function (event) {
//codigo bla bla
alert("ejemplo");
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
was key (any key for all cases), it shows me three times the alert.
It's as if something is accumulating key-key events to repeat itself.
But the strangest thing, when doing the same test action, does not always happen, other times it does not give this problem.
Should I clean the keydown or declare it in another way? Any ideas?