aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-05-12 15:45:26 +0530
committerRoopesh Chander <roop@roopc.net>2019-05-12 15:45:26 +0530
commit69b33c0fad3be65554e62d9b96c011d71337ffed (patch)
tree30e7263b8e7c426a7b28dcd0276532047f61c16a
parentmacOS: Edit view: Dismiss on Esc (diff)
downloadwireguard-apple-69b33c0fad3be65554e62d9b96c011d71337ffed.tar.xz
wireguard-apple-69b33c0fad3be65554e62d9b96c011d71337ffed.zip
macOS: Edit view: Save on Cmd+S
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
index 2773291..88cabbd 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift
@@ -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
}()