mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Remove pause_stdin
This commit is contained in:
parent
e53b8af73b
commit
61d917360b
2 changed files with 5 additions and 32 deletions
|
@ -96,13 +96,13 @@ async fn tui_main(_config: &str) -> Result<()> {
|
|||
match events.next().await? {
|
||||
Event::Input(input) => {
|
||||
if input == app.keyconfig.edit {
|
||||
events.pause_key_capture(&mut terminal);
|
||||
events.leave_tui_mode(&mut terminal);
|
||||
}
|
||||
|
||||
let r = app.handle_input(input);
|
||||
|
||||
if input == app.keyconfig.edit {
|
||||
events.resume_key_capture(&mut terminal);
|
||||
events.enter_tui_mode(&mut terminal);
|
||||
}
|
||||
if r.is_err() {
|
||||
destruct_terminal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue