From 859914a9ee157da44d2816505c6f72cf03d3ef32 Mon Sep 17 00:00:00 2001 From: scauligi Date: Thu, 6 Jun 2019 09:01:40 -0700 Subject: [PATCH] copy for KeyEvent (#148) --- crossterm_input/src/input/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossterm_input/src/input/mod.rs b/crossterm_input/src/input/mod.rs index 5080641..6d5c1e2 100644 --- a/crossterm_input/src/input/mod.rs +++ b/crossterm_input/src/input/mod.rs @@ -91,7 +91,7 @@ pub enum MouseButton { } /// Enum with different key or key combinations. -#[derive(Debug, PartialOrd, PartialEq, Eq)] +#[derive(Debug, PartialOrd, PartialEq, Eq, Clone, Copy)] pub enum KeyEvent { Backspace, Left,