Add missing target_family = "unix" gates
This commit is contained in:
parent
e75964d20b
commit
e6fff76abd
2 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue