Merge pull request #100 from loklaan/effects-example-clarification

Minor clarifying correction to keyboard example code.
This commit is contained in:
Yoshua Wuyts
2016-06-30 16:05:47 +02:00
committed by GitHub
+4 -1
View File
@@ -434,7 +434,10 @@ app.model({
namespace: 'input',
subscriptions: [
function (send) {
onkeypress = (e) => send('input:print', { payload: e.keyCode })
document.addEventListener(
'keypress',
(e) => send('input:print', { payload: e.keyCode })
)
}
],
effects: {