From 7ff6c846562f29b0b6d416fcac4eb66db608027a Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Sun, 5 May 2024 02:54:04 -0700 Subject: [PATCH] fix: incorrect cfg An incorrect #[cfg] attribute introduced in #862 prevented compilation on unix --- src/event.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/event.rs b/src/event.rs index b3bf86a5..2a620e12 100644 --- a/src/event.rs +++ b/src/event.rs @@ -910,7 +910,7 @@ impl Display for ModifierKeyCode { /// /// # Platform-specific Notes /// - /// On macOS, the control, alt, and super keys is displayed as "Control", "Option", and + /// On macOS, the control, alt, and super keys are displayed as "Control", "Option", and /// "Command" respectively. See /// . /// @@ -920,7 +920,6 @@ impl Display for ModifierKeyCode { /// /// On other platforms, the super key is referred to as "Super". fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - #[cfg(target_os = "macos")] match self { ModifierKeyCode::LeftShift => write!(f, "Left Shift"), ModifierKeyCode::LeftHyper => write!(f, "Left Hyper"),