Make KeyEvent implement Copy (#281)

This commit is contained in:
Canop 2019-10-23 13:22:01 +02:00 committed by Timon
parent 2815833a83
commit dc78b67008
2 changed files with 55 additions and 51 deletions

View File

@ -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

View File

@ -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.