get_single_char reads Enter as \n

This commit is contained in:
notoria
2020-04-18 14:16:46 -06:00
committed by Mark Thom
parent c24ebaf506
commit 63e8378310
+4
View File
@@ -77,6 +77,10 @@ pub fn get_single_char() -> char {
c = ch; c = ch;
break; break;
}, },
KeyCode::Enter => {
c = '\n';
break;
},
_ => () _ => ()
} }
} }