Created
November 18, 2020 00:52
-
-
Save rjksn/c4b7fbd5a6aeb14c808fb90931ce7a92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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