mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-03 07:10:05 -04:00
Derive more traits for events::ModifiersState (#411)
This commit is contained in:
committed by
Pierre Krieger
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user