Skip to content

Commit

Permalink
Remove DeviceEvent::Text event
Browse files Browse the repository at this point in the history
The event is never constructed inside the winit.
  • Loading branch information
kchibisov authored Sep 23, 2023
1 parent 2422ea3 commit 8c8fb39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,10 +618,6 @@ pub enum DeviceEvent {
},

Key(RawKeyEvent),

Text {
codepoint: char,
},
}

/// Describes a keyboard input as a raw device event.
Expand Down Expand Up @@ -1221,7 +1217,6 @@ mod tests {
button: 0,
state: event::ElementState::Pressed,
});
with_device_event(Text { codepoint: 'a' });
}
}};
}
Expand Down

0 comments on commit 8c8fb39

Please sign in to comment.