get_single_char reads Enter as \n

This commit is contained in:
notoria
2020-04-18 13:30:52 +02:00
parent 11ea92288d
commit 5d064b18e6

View File

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