diff options
author | Roopesh Chander <roop@roopc.net> | 2019-05-12 13:23:52 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-05-12 13:23:52 +0530 |
commit | 167e4f0bf267214d0b33e3329d813e41044a3379 (patch) | |
tree | 0abb6fd411374be0dc71049d6a30895bab65af89 | |
parent | macOS: Log view: Dismiss on Esc (diff) | |
download | wireguard-apple-167e4f0bf267214d0b33e3329d813e41044a3379.tar.xz wireguard-apple-167e4f0bf267214d0b33e3329d813e41044a3379.zip |
macOS: Edit view: Dismiss on Esc
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index 471c4fe..2773291 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -287,3 +287,9 @@ class TunnelEditViewController: NSViewController { } } } + +extension TunnelEditViewController { + override func cancelOperation(_ sender: Any?) { + handleDiscardAction() + } +} |