Skip to content

Commit a079360

Browse files
committed
WIP
1 parent 7465bf3 commit a079360

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ impl State {
2626
modifiers: KeyModifiers::NONE,
2727
..
2828
}) => self.insert_char(c),
29+
Event::Key(KeyEvent {
30+
code: KeyCode::Enter,
31+
modifiers: KeyModifiers::NONE,
32+
..
33+
}) => self.insert_char('\n'),
2934
_ => {}
3035
}
3136
}

0 commit comments

Comments
 (0)