From: Roopesh Chander Date: Sun, 12 May 2019 07:42:43 +0000 (+0530) Subject: macOS: Log view: Dismiss on Esc X-Git-Tag: 0.0.20190531-9~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e3b28852a74debe27e7d6d1d006e9f953dfb8d0;p=thirdparty%2Fwireguard-apple.git macOS: Log view: Dismiss on Esc Signed-off-by: Roopesh Chander --- diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift index 5e86ca2..8146977 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift @@ -261,3 +261,9 @@ extension LogViewController: NSTableViewDelegate { } } } + +extension LogViewController { + override func cancelOperation(_ sender: Any?) { + closeClicked() + } +}