macOS: Change keyboard shortcut for importing to Cmd+O
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
115059f2bb
commit
966fa7909b
|
@ -102,7 +102,7 @@ extension ManageTunnelsRootViewController {
|
||||||
switch event.charactersIgnoringModifiers {
|
switch event.charactersIgnoringModifiers {
|
||||||
case "n":
|
case "n":
|
||||||
tunnelsListVC?.handleAddEmptyTunnelAction()
|
tunnelsListVC?.handleAddEmptyTunnelAction()
|
||||||
case "i":
|
case "o":
|
||||||
tunnelsListVC?.handleImportTunnelAction()
|
tunnelsListVC?.handleImportTunnelAction()
|
||||||
case "t":
|
case "t":
|
||||||
tunnelDetailVC?.handleToggleActiveStatusAction()
|
tunnelDetailVC?.handleToggleActiveStatusAction()
|
||||||
|
|
|
@ -38,7 +38,7 @@ class TunnelsListTableViewController: NSViewController {
|
||||||
let addMenu: NSMenu = {
|
let addMenu: NSMenu = {
|
||||||
let addMenu = NSMenu(title: "TunnelsListAdd")
|
let addMenu = NSMenu(title: "TunnelsListAdd")
|
||||||
addMenu.addItem(withTitle: tr("macMenuAddEmptyTunnel"), action: #selector(handleAddEmptyTunnelAction), keyEquivalent: "n")
|
addMenu.addItem(withTitle: tr("macMenuAddEmptyTunnel"), action: #selector(handleAddEmptyTunnelAction), keyEquivalent: "n")
|
||||||
addMenu.addItem(withTitle: tr("macMenuImportTunnels"), action: #selector(handleImportTunnelAction), keyEquivalent: "i")
|
addMenu.addItem(withTitle: tr("macMenuImportTunnels"), action: #selector(handleImportTunnelAction), keyEquivalent: "o")
|
||||||
return addMenu
|
return addMenu
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue