diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-01-21 13:05:13 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 13:05:13 +0530 |
| commit | 4e2fa3106789b1b264af955eb05a09710b311add (patch) | |
| tree | dea3866cdb2721147730f38bc09fcd15862371f1 /src/pomo | |
| parent | 0d4d772a9e426824b412a24381b925e9e41aca05 (diff) | |
| parent | 498c29e6a8fc2edd1105bfeac55164532d054783 (diff) | |
| download | pomoru-4e2fa3106789b1b264af955eb05a09710b311add.tar.xz pomoru-4e2fa3106789b1b264af955eb05a09710b311add.zip | |
Merge pull request #2 from ThePiep/main
Fix double keystroke on windows
Diffstat (limited to 'src/pomo')
| -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); + } } } } |