Skip to content

Instantly share code, notes, and snippets.

@rjksn
Created November 18, 2020 00:52
Show Gist options
  • Save rjksn/c4b7fbd5a6aeb14c808fb90931ce7a92 to your computer and use it in GitHub Desktop.
Save rjksn/c4b7fbd5a6aeb14c808fb90931ce7a92 to your computer and use it in GitHub Desktop.
// Paste this in the console of Roll20
// For Creative Suite Esque panning.
// Only tested in Chrome
document.body.onkeydown = function(e) {
if(e.keyCode == 32){
document.querySelector('.choosepan').click();
}
};
document.body.onkeyup = function(e) {
if(e.keyCode == 32){
document.querySelector('.chooseselect').click();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment