feat: open providers with Command-P and dismiss pickers with Escape
This commit is contained in:
@@ -68,6 +68,9 @@ final class TranslationController: NSViewController {
|
||||
providerButton.setAccessibilityLabel("Translation provider")
|
||||
providerButton.target = self
|
||||
providerButton.action = #selector(showProviders)
|
||||
providerButton.keyEquivalent = "p"
|
||||
providerButton.keyEquivalentModifierMask = .command
|
||||
providerButton.toolTip = "Choose translation provider (Command-P)"
|
||||
providerButton.isBordered = false
|
||||
providerButton.font = .systemFont(ofSize: 12, weight: .medium)
|
||||
providerButton.contentTintColor = SunsetPalette.text
|
||||
|
||||
Reference in New Issue
Block a user