From 3fdffa1371f37d1efd0f53dd55e3feeb8d78e063 Mon Sep 17 00:00:00 2001 From: fufesou Date: Mon, 27 Mar 2023 12:08:01 +0800 Subject: [PATCH] format Signed-off-by: fufesou --- src/keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 })