Skip to content

Commit b9fa0bb

Browse files
committed
fix escape handling
1 parent e3e9416 commit b9fa0bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/XTerm.NET/Input/KeyboardInputGenerator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public string GenerateKeySequence(Key key, KeyModifiers modifiers = KeyModifiers
3434
Key.Enter => "\r",
3535
Key.Tab => (modifiers & KeyModifiers.Shift) != 0 ? "\u001b[Z" : "\t",
3636
Key.Backspace => "\u007f", // DEL (127)
37-
Key.Escape => "\u001b",
37+
Key.Escape => modifiers != KeyModifiers.None ? GetModifiedSequence("27~", modifiers) : "\u001b",
3838
Key.Space => " ",
3939

4040
// Arrow keys

0 commit comments

Comments
 (0)