Skip to content
Browse files

test: fix crash on certain keypress events

  • Loading branch information...
1 parent aa07ef5 commit 3075dcc13bd0022f97dfc3c4cf3f73d9f31c4ae4 @TooTallNate committed Jul 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test.js
View
2 test.js
@@ -8,7 +8,7 @@ else
process.stdin.on('keypress', function (c, key) {
console.log(0, c, key)
- if (key.ctrl && key.name == 'c') {
+ if (key && key.ctrl && key.name == 'c') {
process.stdin.pause()
}
})

0 comments on commit 3075dcc

Please sign in to comment.
Something went wrong with that request. Please try again.