Skip to content

Commit 73b3f3f

Browse files
authored
repl: skip release KeyEventKind on windows (#829)
1 parent 1941ed2 commit 73b3f3f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

llrt/src/repl.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,17 @@ pub(crate) async fn run_repl(ctx: &AsyncContext) {
113113
)?;
114114

115115
if let Event::Key(KeyEvent {
116-
code, modifiers, ..
116+
code,
117+
modifiers,
118+
#[cfg(windows)]
119+
kind,
120+
..
117121
}) = event::read()?
118122
{
123+
#[cfg(windows)]
124+
if kind == event::KeyEventKind::Release {
125+
continue;
126+
}
119127
match code {
120128
KeyCode::Enter => {
121129
println!();

0 commit comments

Comments
 (0)