mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Merge pull request #2851 from rtfeldman/editor-freeze-fix
fix editor freeze
This commit is contained in:
commit
d23d5f249f
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,8 @@ fn run_event_loop(project_dir_path_opt: Option<&Path>) -> Result<(), Box<dyn Err
|
||||||
print_err(&e)
|
print_err(&e)
|
||||||
} else if let Ok(InputOutcome::Ignored) = input_outcome_res {
|
} else if let Ok(InputOutcome::Ignored) = input_outcome_res {
|
||||||
println!("Input '{}' ignored!", ch);
|
println!("Input '{}' ignored!", ch);
|
||||||
|
} else {
|
||||||
|
window.request_redraw()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//Keyboard Input
|
//Keyboard Input
|
||||||
|
@ -256,6 +258,8 @@ fn run_event_loop(project_dir_path_opt: Option<&Path>) -> Result<(), Box<dyn Err
|
||||||
if let Err(e) = keydown_res {
|
if let Err(e) = keydown_res {
|
||||||
print_err(&e)
|
print_err(&e)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.request_redraw()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue