When there is focus at input and text is entered. Then when you press the up and down buttons, the cursor moves to the beginning or end of the line. How can this be prevented? I add at event keyup stopPropagation and preventDefault.
$(me.inputSelector).on('keyup', function(e) { if (e.keyCode == 38) { // вверх e.stopPropagation(); e.preventDefault(); return; } if (e.keyCode == 40) { // вниз e.stopPropagation(); e.preventDefault(); return; } });