Skip to content

Commit

Permalink
More actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPodymov committed Apr 1, 2024
1 parent c1fbded commit f60b00d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/CommonAppleKit/CommonAppleKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,12 @@
}

func actions(for target: Any) -> [String] {
actions(forTarget: target, forControlEvent: .primaryActionTriggered) ?? []
[
actions(forTarget: target, forControlEvent: .primaryActionTriggered),
actions(forTarget: target, forControlEvent: .valueChanged)
].flatMap {
$0 ?? []
}
}
}

Expand Down

0 comments on commit f60b00d

Please sign in to comment.