Domen Dolar - 2020-08-19

If you would like to integrate keyboard shortcuts into your RASD application you can use code below.
Copy it into form - "CSS, JS source" - "FORM_JS".

document.onkeyup = function(e) {
  if (e.ctrlKey && e.altKey && e.shiftKey && e.code == 'KeyV') {
  //CTRL + ALT + SHIFT + V pressed 
  // go to the beggining of the form
    window.location='#PAGE_RASD';
    elem = document.getElementById('PAGE_RASD');
    elem.focus();
  } else 
  if (e.ctrlKey && e.altKey && e.shiftKey && e.code == 'KeyB') {
  //CTRL + ALT + SHIFT + B pressed
  alert('you pressed CTRL + ALT + SHIFT + B');
  } 
};

all codes are on this link: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code/code_values

 

Last edit: Domen Dolar 2020-08-19