@@ -25,6 +25,7 @@ public class KeyHandler
25
25
/// The name of the function that a key is bound to, if any.
26
26
/// </summary>
27
27
public string Function { get ; set ; }
28
+
28
29
/// <summary>
29
30
/// A short description of the behavior of the function.
30
31
/// </summary>
@@ -100,7 +101,7 @@ void SetDefaultWindowsBindings()
100
101
{
101
102
_dispatchTable = new Dictionary < ConsoleKeyInfo , KeyHandler > ( new ConsoleKeyInfoComparer ( ) )
102
103
{
103
- { Keys . Enter , MakeKeyHandler ( ValidateAndAcceptLine , "ValidateAndAcceptLine ") } ,
104
+ { Keys . Enter , MakeKeyHandler ( AcceptLine , "AcceptLine ") } ,
104
105
{ Keys . ShiftEnter , MakeKeyHandler ( AddLine , "AddLine" ) } ,
105
106
{ Keys . Escape , MakeKeyHandler ( RevertLine , "RevertLine" ) } ,
106
107
{ Keys . LeftArrow , MakeKeyHandler ( BackwardChar , "BackwardChar" ) } ,
@@ -173,7 +174,7 @@ void SetDefaultEmacsBindings()
173
174
_dispatchTable = new Dictionary < ConsoleKeyInfo , KeyHandler > ( new ConsoleKeyInfoComparer ( ) )
174
175
{
175
176
{ Keys . Backspace , MakeKeyHandler ( BackwardDeleteChar , "BackwardDeleteChar" ) } ,
176
- { Keys . Enter , MakeKeyHandler ( ValidateAndAcceptLine , "ValidateAndAcceptLine ") } ,
177
+ { Keys . Enter , MakeKeyHandler ( AcceptLine , "AcceptLine ") } ,
177
178
{ Keys . ShiftEnter , MakeKeyHandler ( AddLine , "AddLine" ) } ,
178
179
{ Keys . LeftArrow , MakeKeyHandler ( BackwardChar , "BackwardChar" ) } ,
179
180
{ Keys . RightArrow , MakeKeyHandler ( ForwardChar , "ForwardChar" ) } ,
0 commit comments