This is my script file to show a div on key press. It works on pc:
$(document).on('keypress', function(e) {
if(e.keyCode === 97) { //a
$('.login-box').show();
$('#intial').hide();
}
});
but it dos not work on phones as there is on input fields so I cannot open the keyboard. Is there any way i could go about doing this?.. preferably a touch event (pattern)..