Add missing target_family = "unix" gates

This commit is contained in:
Mattias Eriksson 2024-01-20 14:27:16 +01:00
parent e75964d20b
commit e6fff76abd
2 changed files with 3 additions and 0 deletions

View file

@ -61,6 +61,7 @@ pub fn key_binds() -> HashMap<KeyBind, Action> {
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);

View file

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