Created
October 17, 2022 14:38
-
-
Save favio41/cd05878efb4330777fd97bb3ded87d4d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
document.addEventListener('keydown', (e) => { if(e.code === 'KeyN') { document.querySelector('.game-controls-item[data-action="pencil"]').dispatchEvent(new MouseEvent('mousedown', {view: window, bubbles: true, cancelable: true })); } } ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment