I have find other solution
First you have to create a function
function getFocus(campo){
$(window).bind('resize', function() {
if(windowWidth <= 1025) {
$(campo).focus();
}
});
}
and when you click in an input you call the function
$('input').click(function(){
getFocus(this);
});
This works for me