Derive more traits for events::ModifiersState (#411)

This commit is contained in:
Jim Turner 2018-02-22 12:15:56 -05:00 committed by Pierre Krieger
parent f279b2f229
commit 4c62d71950
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,7 @@
# Unreleased
- Impl `Hash`, `PartialEq`, and `Eq` for `events::ModifiersState`.
# 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.

View file

@ -433,7 +433,7 @@ pub enum VirtualKeyCode {
/// Represents the current state of the keyboard modifiers
///
/// 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 {
/// The "shift" key
pub shift: bool,