aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-05-12 13:12:43 +0530
committerRoopesh Chander <roop@roopc.net>2019-05-12 13:21:42 +0530
commit6e3b28852a74debe27e7d6d1d006e9f953dfb8d0 (patch)
treecef43330e20703a7c94b4379f49f1edb9b671420
parentiOS: Log view: Improve the look (diff)
downloadwireguard-apple-6e3b28852a74debe27e7d6d1d006e9f953dfb8d0.tar.xz
wireguard-apple-6e3b28852a74debe27e7d6d1d006e9f953dfb8d0.zip
macOS: Log view: Dismiss on Esc
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/LogViewController.swift6
1 files changed, 6 insertions, 0 deletions
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()
+ }
+}