We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3e9416 commit b9fa0bbCopy full SHA for b9fa0bb
1 file changed
src/XTerm.NET/Input/KeyboardInputGenerator.cs
@@ -34,7 +34,7 @@ public string GenerateKeySequence(Key key, KeyModifiers modifiers = KeyModifiers
34
Key.Enter => "\r",
35
Key.Tab => (modifiers & KeyModifiers.Shift) != 0 ? "\u001b[Z" : "\t",
36
Key.Backspace => "\u007f", // DEL (127)
37
- Key.Escape => "\u001b",
+ Key.Escape => modifiers != KeyModifiers.None ? GetModifiedSequence("27~", modifiers) : "\u001b",
38
Key.Space => " ",
39
40
// Arrow keys
0 commit comments