]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
macOS: Edit view: Save on Cmd+S
authorRoopesh Chander <roop@roopc.net>
Sun, 12 May 2019 10:15:26 +0000 (15:45 +0530)
committerRoopesh Chander <roop@roopc.net>
Sun, 12 May 2019 10:15:26 +0000 (15:45 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift

index 27732915ad3a4fe98ad5e4410ccff20d1674eab6..88cabbdcd63589cf0b12b65fb8df385e40578a3d 100644 (file)
@@ -73,6 +73,8 @@ class TunnelEditViewController: NSViewController {
         button.title = tr("macEditSave")
         button.setButtonType(.momentaryPushIn)
         button.bezelStyle = .rounded
+        button.keyEquivalent = "s"
+        button.keyEquivalentModifierMask = [.command]
         return button
     }()