From 8c8fb39fcd147fc86e722374cbd0632888299947 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sat, 23 Sep 2023 18:40:23 +0400 Subject: [PATCH] Remove `DeviceEvent::Text` event The event is never constructed inside the winit. --- CHANGELOG.md | 1 + src/event.rs | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23a6ab7fda..5f3d50073c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ And please only add new entries to the top of this list, right below the `# Unre - Implement `PartialOrd` and `Ord` for `MouseButton`. - On X11, fix event loop not waking up on `ControlFlow::Poll` and `ControlFlow::WaitUntil`. - **Breaking:** Change default `ControlFlow` from `Poll` to `Wait`. +- **Breaking:** remove `DeviceEvent::Text`. # 0.29.1-beta diff --git a/src/event.rs b/src/event.rs index 62b752e24c..1ebe05cf5d 100644 --- a/src/event.rs +++ b/src/event.rs @@ -618,10 +618,6 @@ pub enum DeviceEvent { }, Key(RawKeyEvent), - - Text { - codepoint: char, - }, } /// Describes a keyboard input as a raw device event. @@ -1221,7 +1217,6 @@ mod tests { button: 0, state: event::ElementState::Pressed, }); - with_device_event(Text { codepoint: 'a' }); } }}; }