Hello!

This code checks if the user has pressed Enter

 $('#text').keydown(function(event) { if (event.keyCode == 13) { alert('ВЫ НАЖАЛИ ENTER'); } }); 

And how to write a condition that works if the user pressed Enter twice in a row? (and when once is another condition?)

Thank you very much!

    1 answer 1

    Here is the solution How to trap double key press in javascript .

    • Thank you very much! - sergey_c