1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-19 17:31:44 +03:00

Support inserting esc characters through <c-v>

As requested in #960
This commit is contained in:
Maxime Coste 2016-12-14 00:34:53 +00:00
parent 735b1e1dc5
commit 85a534fb8a

View File

@ -27,6 +27,8 @@ Optional<Codepoint> Key::codepoint() const
return '\n'; return '\n';
if (*this == Key::Tab) if (*this == Key::Tab)
return '\t'; return '\t';
if (*this == Key::Escape)
return 0x1B;
if (modifiers == Modifiers::None and key > 27 and if (modifiers == Modifiers::None and key > 27 and
(key < 0xD800 or key > 0xDFFF)) // avoid surrogates (key < 0xD800 or key > 0xDFFF)) // avoid surrogates
return key; return key;