aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/client
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command/client/search/interactive.rs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/command/client/search/interactive.rs b/src/command/client/search/interactive.rs
index 4a29ee47..45c532f0 100644
--- a/src/command/client/search/interactive.rs
+++ b/src/command/client/search/interactive.rs
@@ -96,12 +96,17 @@ impl State {
None
}
+ #[allow(clippy::too_many_lines)]
fn handle_key_input(
&mut self,
settings: &Settings,
input: &KeyEvent,
len: usize,
) -> Option<usize> {
+ if input.kind == event::KeyEventKind::Release {
+ return None;
+ }
+
let ctrl = input.modifiers.contains(KeyModifiers::CONTROL);
let alt = input.modifiers.contains(KeyModifiers::ALT);
match input.code {
@@ -483,13 +488,6 @@ pub async fn history(
let initial_input = app.input.as_str().to_owned();
let initial_filter_mode = app.filter_mode;
- {
- // We do this because windows does double inputs and captures the `Enter` when running a
- // command
- #[cfg(target_os = "windows")]
- let _ = event::read();
- };
-
let event_ready = tokio::task::spawn_blocking(|| event::poll(Duration::from_millis(250)));
tokio::select! {