From: Roopesh Chander Date: Sun, 10 Feb 2019 12:25:50 +0000 (+0530) Subject: macOS: Change keyboard shortcut for importing to Cmd+O X-Git-Tag: 0.0.20190207-3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=966fa7909b35163ed6f94f9ec3378e57579d6c8f;p=thirdparty%2Fwireguard-apple.git macOS: Change keyboard shortcut for importing to Cmd+O Signed-off-by: Roopesh Chander --- diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift index fc7d547..5e90437 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/ManageTunnelsRootViewController.swift @@ -102,7 +102,7 @@ extension ManageTunnelsRootViewController { switch event.charactersIgnoringModifiers { case "n": tunnelsListVC?.handleAddEmptyTunnelAction() - case "i": + case "o": tunnelsListVC?.handleImportTunnelAction() case "t": tunnelDetailVC?.handleToggleActiveStatusAction() diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift index cfeb8f1..c2f3ffa 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelsListTableViewController.swift @@ -38,7 +38,7 @@ class TunnelsListTableViewController: NSViewController { let addMenu: NSMenu = { let addMenu = NSMenu(title: "TunnelsListAdd") 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 }()