Last active
November 13, 2018 19:43
-
-
Save sliminality/6e71ad49ab8ac67216fe364bef176373 to your computer and use it in GitHub Desktop.
bind Ctrl-P to toggle pencil mode on and off in the NYT Crossword app
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
// make a bookmarklet here: https://mrcoles.com/bookmarklet/ | |
const listener = ({key, ctrlKey}) => { | |
if (ctrlKey && key === 'p') { | |
$r.store.dispatch({ | |
type: 'TOGGLE_PENCIL_MODE', | |
}); | |
} | |
}; | |
document.body.addEventListener('keypress', listener); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment