-
-
Save WimJongeneel/bcf2c0eebb9c44360f39f064550fb3b8 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
/** | |
* creates a continuation of Event that outputs values whenever a key gets pressed | |
*/ | |
const keyboard = () => create_cont<Event>(cb => { | |
document.addEventListener('keypress', cb) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment