When I press ctrl + right arrow,
I want the following code to run:
alert ('ctr | + right');
I tried to implement it using js logic, but it was difficult.
Thanks for letting me know
my code
$(function() {
$('body').keydown(function(e) {
if(e.ctrlKey && e.which == 78 ){
alert('ctrㅣ + n');
}
});
});
It was a conflict with the chrome shortcut. Thanks to those who answered I solved the problem Thanks for the hint.
this code is work 39 is right direction key
$(function() {
$('body').keyup(function(e) {
if (e.ctrlKey && e.which === 39) {
alert('ctrㅣ + n');
}
});
});