mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-27 11:16:03 +00:00
Add Esc support to termion backend
This commit is contained in:
parent
ce009d0e5f
commit
508c9833e3
@ -154,6 +154,7 @@ impl backend::Backend for Concrete {
|
|||||||
// TODO: parse input
|
// TODO: parse input
|
||||||
if let Some(key) = ::std::io::stdin().keys().next() {
|
if let Some(key) = ::std::io::stdin().keys().next() {
|
||||||
match key.unwrap() {
|
match key.unwrap() {
|
||||||
|
TKey::Esc => Event::Key(Key::Esc),
|
||||||
TKey::Backspace => Event::Key(Key::Backspace),
|
TKey::Backspace => Event::Key(Key::Backspace),
|
||||||
TKey::Left => Event::Key(Key::Left),
|
TKey::Left => Event::Key(Key::Left),
|
||||||
TKey::Right => Event::Key(Key::Right),
|
TKey::Right => Event::Key(Key::Right),
|
||||||
|
Loading…
Reference in New Issue
Block a user