Skip to content

Commit

Permalink
Fix: "enter" key not printed with expect keys
Browse files Browse the repository at this point in the history
bug introduced in 3868198
  • Loading branch information
lotabout committed Feb 22, 2020
1 parent 30fb0dc commit 29239ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl Input {

pub fn parse_expect_keys(&mut self, keys: Option<&str>) {
if let Some(keys) = keys {
self.bind("enter", vec![Event::EvActAccept(None)]);
self.bind("enter", vec![Event::EvActAccept(Some("".to_string()))]);
for key in keys.split(',') {
self.bind(key, vec![Event::EvActAccept(Some(key.to_string()))]);
}
Expand Down

0 comments on commit 29239ba

Please sign in to comment.