diff options
| author | Kaj van Rijn <kaj.rijn@gmail.nl> | 2026-01-20 14:20:00 +0100 |
|---|---|---|
| committer | Kaj van Rijn <kaj.rijn@gmail.nl> | 2026-01-20 14:20:00 +0100 |
| commit | 498c29e6a8fc2edd1105bfeac55164532d054783 (patch) | |
| tree | dea3866cdb2721147730f38bc09fcd15862371f1 /src | |
| parent | 0d4d772a9e426824b412a24381b925e9e41aca05 (diff) | |
| download | pomoru-498c29e6a8fc2edd1105bfeac55164532d054783.tar.xz pomoru-498c29e6a8fc2edd1105bfeac55164532d054783.zip | |
Fix double keystroke on windows
Diffstat (limited to 'src')
| -rw-r--r-- | src/pomo/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pomo/mod.rs b/src/pomo/mod.rs index a99df5d..dae4490 100644 --- a/src/pomo/mod.rs +++ b/src/pomo/mod.rs @@ -69,7 +69,9 @@ impl Pomo { event_res = tokio::task::spawn_blocking(|| event::poll(Duration::from_millis(16))) => { if let Ok(Ok(true)) = event_res { if let Ok(Event::Key(key)) = event::read() { - self.handle_key(key); + if key.kind == event::KeyEventKind::Press { + self.handle_key(key); + } } } } |