Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

js shortcut

document.addEventListener('keydown', (e) => {
  if (e.ctrlKey && String.fromCharCode(e.keyCode).toLowerCase() === 's') {
    e.preventDefault();
    e.stopPropagation();
    // Do some stuff...
  }
}, false);
Comment

PREVIOUS NEXT
Code Example
Javascript :: remove single item from array in angular 
Javascript :: mongoose custom object schema 
Javascript :: javascript json decode 
Javascript :: classlist js 
Javascript :: reverse date javascript from yyyy/mm/dd to dd/mm/yyyy 
Javascript :: clear whitespace from object javascript 
Javascript :: regex any character 
Javascript :: read all file names of folder in react 
Javascript :: javascript check if string is valid hex color 
Javascript :: new operator in javascript 
Javascript :: vue max characters html input 
Javascript :: js get object properties 
Javascript :: form validation using jquery 
Javascript :: jquery get id 
Javascript :: install react native gifted charts 
Javascript :: install proptypes react 
Javascript :: js add element to front of array 
Javascript :: javascript foreach index 
Javascript :: html iframe and JS contentwindow 
Javascript :: unique string id js 
Javascript :: Generate Random Whole Numbers within a Range 
Javascript :: javascript clear all cookies 
Javascript :: on scroll change navbar color 
Javascript :: AWS S3 JavaScript example 
Javascript :: hide component on click vue 
Javascript :: how to delete a cookie in js 
Javascript :: nodejs fetch 
Javascript :: how to check if a number is a whole number in javascript 
Javascript :: javascript get first 3 characters of string 
Javascript :: react to string 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =