Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/app/input/clipboard.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crossterm::event::{KeyCode, KeyModifiers};

use crate::{
app::{App, InputSourceId},
app::{App, HeldKeyRepeat, InputSourceId},
input::TerminalKey,
};

Expand Down Expand Up @@ -46,7 +46,8 @@ impl App {
return false;
}

self.suppressed_repeat_keys.insert((source_id, key.code));
self.held_key_repeats
.insert((source_id, key.code), HeldKeyRepeat::Blocked);
true
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/app/input/terminal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,7 @@ impl App {
.collect();
self.pressed_terminal_keys
.retain(|(id, _), _| *id != source_id);
self.suppressed_repeat_keys
.retain(|(id, _)| *id != source_id);
self.held_key_repeats.retain(|(id, _), _| *id != source_id);
pressed
}

Expand Down
Loading
Loading