Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

javascript check if two keys are pressed

// Ctrl + S save
document.onkeyup = function(e) {
  // 83 is the keycode for S
  if (e.ctrlKey && e.which == 83) {
    //Ctrl+S Pressed!
  }
};
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to reverse loop in javascript 
Javascript :: ajax get form data 
Javascript :: regex for month 
Javascript :: object delete with id filter javascript 
Javascript :: cypress have attribute 
Javascript :: Javascript find element with focus 
Javascript :: You need to authorize this machine using `npm adduser` 
Javascript :: curl post json file 
Javascript :: run function every second javascript 
Javascript :: fatal error: ineffective mark-compacts near heap limit allocation failed – javascript heap out of memory 
Javascript :: js get day month year 
Javascript :: adding firebase to angular 
Javascript :: ajax datatable reload paging retained 
Javascript :: session check in javascript 
Javascript :: how to check if a string is in a string js 
Javascript :: how to run angular application in visual studio code 
Javascript :: transitionduration 
Javascript :: react native elevation 
Javascript :: float to currency 
Javascript :: json merge 
Javascript :: react native position text in center of view 
Javascript :: how to loop through date range in javascript 
Javascript :: javascript tofixed 
Javascript :: download canvas js 
Javascript :: copy file javascript 
Javascript :: dice roller javascript 
Javascript :: if jsp 
Javascript :: drop down listing in angular form 
Javascript :: sequelize not equal 
Javascript :: javascript onclick to another page div 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =