From e6fff76abd5c579ae4ed509ac0db063ee0ad240d Mon Sep 17 00:00:00 2001 From: Mattias Eriksson Date: Sat, 20 Jan 2024 14:27:16 +0100 Subject: [PATCH] Add missing target_family = "unix" gates --- src/key_bind.rs | 1 + src/main.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/key_bind.rs b/src/key_bind.rs index bf54cad..03b9b1f 100644 --- a/src/key_bind.rs +++ b/src/key_bind.rs @@ -61,6 +61,7 @@ pub fn key_binds() -> HashMap { bind!([Ctrl, Shift], Q, WindowClose); bind!([Ctrl, Shift], T, TabNew); bind!([Ctrl, Shift], V, Paste); + #[cfg(target_family = "unix")] bind!([Shift], Insert, PastePrimary); bind!([Ctrl, Shift], W, TabClose); diff --git a/src/main.rs b/src/main.rs index b1f6faa..55a1aa5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -174,6 +174,7 @@ pub enum Action { PaneSplitVertical, PaneToggleMaximized, Paste, + #[cfg(target_family = "unix")] PastePrimary, SelectAll, Settings, @@ -211,6 +212,7 @@ impl Action { Action::PaneSplitVertical => Message::PaneSplit(pane_grid::Axis::Vertical), Action::PaneToggleMaximized => Message::PaneToggleMaximized, Action::Paste => Message::Paste(entity_opt), + #[cfg(target_family = "unix")] Action::PastePrimary => Message::PastePrimary(entity_opt), Action::SelectAll => Message::SelectAll(entity_opt), Action::Settings => Message::ToggleContextPage(ContextPage::Settings),