mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Derive more traits for events::ModifiersState (#411)
This commit is contained in:
parent
f279b2f229
commit
4c62d71950
|
@ -1,5 +1,7 @@
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- Impl `Hash`, `PartialEq`, and `Eq` for `events::ModifiersState`.
|
||||||
|
|
||||||
# Version 0.11.1 (2018-02-19)
|
# Version 0.11.1 (2018-02-19)
|
||||||
|
|
||||||
- Fixed windows not receiving mouse events when click-dragging the mouse outside the client area of a window, on Windows platforms.
|
- Fixed windows not receiving mouse events when click-dragging the mouse outside the client area of a window, on Windows platforms.
|
||||||
|
|
|
@ -433,7 +433,7 @@ pub enum VirtualKeyCode {
|
||||||
/// Represents the current state of the keyboard modifiers
|
/// Represents the current state of the keyboard modifiers
|
||||||
///
|
///
|
||||||
/// Each field of this struct represents a modifier and is `true` if this modifier is active.
|
/// Each field of this struct represents a modifier and is `true` if this modifier is active.
|
||||||
#[derive(Default, Debug, Clone, Copy)]
|
#[derive(Default, Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||||
pub struct ModifiersState {
|
pub struct ModifiersState {
|
||||||
/// The "shift" key
|
/// The "shift" key
|
||||||
pub shift: bool,
|
pub shift: bool,
|
||||||
|
|
Loading…
Reference in a new issue