Fix KeyModifiers not working

This commit is contained in:
2026-07-18 13:51:19 -04:00
parent 74c16cb968
commit 335c0b0e09
+1 -1
View File
@@ -29,7 +29,7 @@ mod platform {
#[cfg(not(target_os = "macos"))] #[cfg(not(target_os = "macos"))]
mod platform { mod platform {
use crossterm::event::{KeyCode, KeyEvent}; use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
pub fn is_backspace(event: &KeyEvent) -> bool { pub fn is_backspace(event: &KeyEvent) -> bool {
matches!(event.code, KeyCode::Backspace) matches!(event.code, KeyCode::Backspace)