Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to catch shortcut keys in jquery

$(window).keydown(function (e){
    if ((e.metaKey || e.ctrlKey) && e.keyCode == 83) { /*ctrl+s or command+s*/
        yourFunction();
        e.preventDefault();
        return false;
    }
});
Comment

PREVIOUS NEXT
Code Example
Javascript :: Jboss heap dump 
Javascript :: browser console noting displayed 
Javascript :: mysql timestamp to time/days ago function 
Javascript :: get related through lookup using javascript in ms crm 
Javascript :: vscode decrease window tab 
Javascript :: asasa 
Javascript :: React sub count 
Javascript :: objection eager loading 
Javascript :: Masonry js css 
Javascript :: read pdf as array bytes using fetch 
Javascript :: filebase64 template 
Javascript :: switch case block scope 
Javascript :: petru a retuna toate toate datele in java script 
Javascript :: Google App Script Create Contact 
Javascript :: mongo look for substring of field 
Javascript :: Angular generate by skipping test files 
Javascript :: how to store data in cookie in javascript 
Javascript :: fselect jquery 
Javascript :: cara install parrot os di virtualbox 
Javascript :: Old Syntax of Router Switch 
Javascript :: a method that will do something to each of the values in the array 
Javascript :: es6 syntax 
Javascript :: Backbon events In View 
Javascript :: jquery validate min and max value 
Javascript :: react with two components render empty 
Javascript :: nodejs express parse query params boolean 
Javascript :: append different object in object javascript 
Javascript :: CDNs for arquero 
Javascript :: dropzone js change dynamic url 
Javascript :: FirebaseError: Unknown field filter op. 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =