get_single_char reads Enter as \n

This commit is contained in:
notoria
2020-04-18 13:30:52 +02:00
committed by Mark Thom
parent c24ebaf506
commit 63e8378310

View File

@@ -77,6 +77,10 @@ pub fn get_single_char() -> char {
c = ch;
break;
},
KeyCode::Enter => {
c = '\n';
break;
},
_ => ()
}
}