From 485fa54a962bda7621d06dd69d2aeb3ccbb83a67 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 28 Feb 2020 12:22:06 -0500 Subject: [PATCH] ugh i messed up again --- terminal.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terminal.d b/terminal.d index 5d61192..1915e81 100644 --- a/terminal.d +++ b/terminal.d @@ -2333,6 +2333,12 @@ struct RealTimeConsoleInput { // old style event then follows as the fallback e.character = cast(dchar) cast(wchar) '\n'; newEvents ~= InputEvent(e, terminal); + } else if(ev.wVirtualKeyCode == 0x1b) { + ke.which = cast(KeyboardEvent.Key) (ev.wVirtualKeyCode + 0xF0000); + newEvents ~= InputEvent(ke, terminal); + + ne.key = cast(NonCharacterKeyEvent.Key) ev.wVirtualKeyCode; + newEvents ~= InputEvent(ne, terminal); } else { ke.which = cast(dchar) cast(wchar) ev.UnicodeChar; newEvents ~= InputEvent(ke, terminal);