diff --git a/src/keyboard.rs b/src/keyboard.rs index 003925e96..5a41d6c5c 100644 --- a/src/keyboard.rs +++ b/src/keyboard.rs @@ -366,7 +366,7 @@ pub fn get_keyboard_mode_enum() -> KeyboardMode { #[inline] fn is_numpad_key(event: &Event) -> bool { matches!(event.event_type, EventType::KeyPress(key) | EventType::KeyRelease(key) if match key { - Key::Kp0 | Key::Kp1 | Key::Kp2 | Key::Kp3 | Key::Kp4| Key::Kp5| Key::Kp6| Key::Kp7 | Key::Kp8 | + Key::Kp0 | Key::Kp1 | Key::Kp2 | Key::Kp3 | Key::Kp4 | Key::Kp5 | Key::Kp6 | Key::Kp7 | Key::Kp8 | Key::Kp9 | Key::KpMinus | Key::KpMultiply | Key::KpDivide | Key::KpPlus | Key::KpDecimal => true, _ => false })