Fix KeyModifiers not working
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user