mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-19 17:31:44 +03:00
parent
735b1e1dc5
commit
85a534fb8a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user