Make KeyEvent
implement Copy
(#281)
This commit is contained in:
parent
2815833a83
commit
dc78b67008
@ -1,3 +1,7 @@
|
||||
# Next Version
|
||||
|
||||
- Derived 'Copy' for 'KeyEvent'
|
||||
|
||||
# Version 0.12.1
|
||||
|
||||
- All the `crossterm_` crates code was moved to the `crossterm` crate
|
||||
|
@ -102,7 +102,7 @@ pub enum MouseButton {
|
||||
}
|
||||
|
||||
/// Represents a key or a combination of keys.
|
||||
#[derive(Debug, PartialOrd, PartialEq, Eq, Clone, Hash)]
|
||||
#[derive(Debug, PartialOrd, PartialEq, Eq, Clone, Copy, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
pub enum KeyEvent {
|
||||
/// Backspace key.
|
||||
|
Loading…
Reference in New Issue
Block a user