Skip to content

Commit 0f11540

Browse files
authored
Merge pull request #377 from gilmoreorless/patch-1
Add missing argument to the first keypress callback
2 parents f6197f5 + 47b86f1 commit 0f11540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/lesson4/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The following code allows you to listen for a keypress on the input field, and t
104104

105105
```js
106106
$(document).ready(function() {
107-
$(document).on('keypress', '#username', function() {
107+
$(document).on('keypress', '#username', function(event) {
108108
if (event.which === 13) { // check the key was <enter>
109109
// do something
110110
}

0 commit comments

Comments
 (0)