From 6e3b28852a74debe27e7d6d1d006e9f953dfb8d0 Mon Sep 17 00:00:00 2001 From: Roopesh Chander Date: Sun, 12 May 2019 13:12:43 +0530 Subject: [PATCH] macOS: Log view: Dismiss on Esc Signed-off-by: Roopesh Chander --- .../UI/macOS/ViewController/LogViewController.swift | 6 ++++++ 1 file changed, 6 insertions(+) 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() + } +}