macOS: Edit view: Dismiss on Esc

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-05-12 13:23:52 +05:30
parent 6e3b28852a
commit 167e4f0bf2
1 changed files with 6 additions and 0 deletions

View File

@ -287,3 +287,9 @@ class TunnelEditViewController: NSViewController {
} }
} }
} }
extension TunnelEditViewController {
override func cancelOperation(_ sender: Any?) {
handleDiscardAction()
}
}