diff --git a/src/keys.cc b/src/keys.cc index 11b2ad93e..c9031732f 100644 --- a/src/keys.cc +++ b/src/keys.cc @@ -27,6 +27,8 @@ Optional Key::codepoint() const return '\n'; if (*this == Key::Tab) return '\t'; + if (*this == Key::Escape) + return 0x1B; if (modifiers == Modifiers::None and key > 27 and (key < 0xD800 or key > 0xDFFF)) // avoid surrogates return key;