fix: Windows build warnings, key echo duplication, case-insensitive dedup, add WSL scanning

This commit is contained in:
2026-05-27 20:13:40 +08:00
parent 01c8f7f8fc
commit 2e25b9fcb3
3 changed files with 89 additions and 12 deletions
+2 -1
View File
@@ -2,7 +2,7 @@ use crate::app::{App, Mode};
use anyhow::Result;
use crossterm::{
cursor::{Hide, Show},
event::{self, Event, KeyCode, KeyEvent, KeyModifiers},
event::{self, Event, KeyCode, KeyEvent, KeyEventKind, KeyModifiers},
execute,
terminal::{EnterAlternateScreen, LeaveAlternateScreen, disable_raw_mode, enable_raw_mode},
};
@@ -31,6 +31,7 @@ pub fn run() -> Result<()> {
}
if event::poll(Duration::from_millis(200))?
&& let Event::Key(key) = event::read()?
&& key.kind == KeyEventKind::Press
{
handle_key(&mut app, key)?;
}