macOS: Manage tunnels: Make keyboard shortcuts discoverable
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
c477d24d67
commit
7d5eb476e4
|
@ -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
|
||||
}()
|
||||
|
||||
|
|
|
@ -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
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue