macOS: Manage tunnels: Make keyboard shortcuts discoverable

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-01-17 02:43:24 +05:30
parent c477d24d67
commit 7d5eb476e4
2 changed files with 4 additions and 2 deletions

View File

@ -55,6 +55,7 @@ class TunnelDetailTableViewController: NSViewController {
checkbox.title = ""
checkbox.setButtonType(.switch)
checkbox.state = .off
checkbox.toolTip = "Toggle status (⌘T)"
return checkbox
}()
@ -63,6 +64,7 @@ class TunnelDetailTableViewController: NSViewController {
button.title = tr("Edit")
button.setButtonType(.momentaryPushIn)
button.bezelStyle = .rounded
button.toolTip = "Edit tunnel (⌘E)"
return button
}()

View File

@ -37,8 +37,8 @@ class TunnelsListTableViewController: NSViewController {
let addMenu: NSMenu = {
let addMenu = NSMenu(title: "TunnelsListAdd")
addMenu.addItem(withTitle: tr("macMenuAddEmptyTunnel"), action: #selector(handleAddEmptyTunnelAction), keyEquivalent: "")
addMenu.addItem(withTitle: tr("macMenuImportTunnels"), action: #selector(handleImportTunnelAction), keyEquivalent: "")
addMenu.addItem(withTitle: tr("macMenuAddEmptyTunnel"), action: #selector(handleAddEmptyTunnelAction), keyEquivalent: "n")
addMenu.addItem(withTitle: tr("macMenuImportTunnels"), action: #selector(handleImportTunnelAction), keyEquivalent: "i")
return addMenu
}()