Skip to content

Instantly share code, notes, and snippets.

@strukturart
Created December 1, 2019 22:35
Show Gist options
  • Save strukturart/55f0ac3af9c63637433f1731e7ea2c0e to your computer and use it in GitHub Desktop.
Save strukturart/55f0ac3af9c63637433f1731e7ea2c0e to your computer and use it in GitHub Desktop.
//////////////////////////
////KEYPAD TRIGGER////////////
/////////////////////////
function handleKeyDown(evt) {
switch (evt.key) {
case 'Backspace':
break;
case 'SoftLeft':
break;
case 'SoftRight':
break;
case 'Enter':
break;
case '1':
getLocation("updateMarker")
break;
case '2':
break;
case '3':
break;
case 'ArrowRight':
break;
case 'ArrowLeft':
break;
case 'ArrowUp':
break;
case 'ArrowDown':
break;
}
};
document.addEventListener('keydown', handleKeyDown);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment