Skip to content

Commit

Permalink
feature: Make KeyChord Copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
shanecelis committed Dec 24, 2024
1 parent 965b577 commit 7062954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chord.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::{collections::VecDeque, fmt};
use keyseq::Modifiers;

/// Represents a key chord, i.e., a set of modifiers and a key code.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Reflect)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Reflect)]
pub struct KeyChord(pub Modifiers, pub KeyCode);

impl fmt::Display for KeyChord {
Expand Down

0 comments on commit 7062954

Please sign in to comment.