This topic is locked

CTRL + N or CTRL + S Keyboard Shortcut

10/2/2019 10:11:56 AM
PHPRunner General questions
H
harveyspecter author

Hello i am using that code for add new record with "N" keyboard button.



//load the add page (or popup) if you press the n button

$(window).keydown(function(event) {

if(event.keyCode == 78) {

$("a[id^='addButton']").click();

event.preventDefault();

}

});


I need it to be "CTRL + N". How can i do it? Help please. Thanks alot!