diff --git a/lib/init.js b/lib/init.js index 1336264a8..50ff6db3f 100755 --- a/lib/init.js +++ b/lib/init.js @@ -135,7 +135,7 @@ var StateMachine = function(rli) { this.suggestNextOption(); } - if (!key.ctrl && !key.meta && key.name !== 'enter') { + if (!key.ctrl && !key.meta && key.name !== 'enter' && key.name !== 'return') { key.name = 'escape'; } };