From 9c36ea4d9e6243315405e250039e9ef5921e4c91 Mon Sep 17 00:00:00 2001 From: Dongdong Zhou Date: Wed, 27 Sep 2023 20:34:42 +0100 Subject: [PATCH] fix keyup event listner --- src/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.rs b/src/event.rs index a39b4326..c60b0a3e 100644 --- a/src/event.rs +++ b/src/event.rs @@ -246,7 +246,7 @@ impl Event { Event::PointerMove(_) => Some(EventListener::PointerMove), Event::PointerWheel(_) => Some(EventListener::PointerWheel), Event::KeyDown(_) => Some(EventListener::KeyDown), - Event::KeyUp(_) => Some(EventListener::KeyDown), + Event::KeyUp(_) => Some(EventListener::KeyUp), Event::ImeEnabled => Some(EventListener::ImeEnabled), Event::ImeDisabled => Some(EventListener::ImeDisabled), Event::ImePreedit { .. } => Some(EventListener::ImePreedit),