1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-03 14:26:17 +03:00

fix enter key is not recognized with termion support

Этот коммит содержится в:
rhysd
2022-06-12 17:46:02 +09:00
родитель a104799b3f
Коммит ebc3eb8e6f

Просмотреть файл

@@ -93,6 +93,7 @@ impl From<TermionKey> for Input {
let mut ctrl = false;
let mut alt = false;
let key = match key {
Char('\n' | '\r') => Key::Enter,
Char(c) => Key::Char(c),
Ctrl(c) => {
ctrl = true;