You will need to add a snippet of js in the view
<script>
document.addEventListener('keydown', function(e){
if(e.which === 37){
document.getElementById('previousPhoto').getElementsByTagName('a')[0].click();
} else if (e.which === 39) {
document.getElementById('nextPhoto').getElementsByTagName('a')[0].click();
}
});
</script>
Post a Comment for "Listening To The KeyPressed Event, Razor"