From dcbf2ae3093638421109c34135c5da1779498dec Mon Sep 17 00:00:00 2001 From: Soner YUKSEL Date: Thu, 14 Dec 2023 16:27:23 -0500 Subject: [PATCH] Fix #8552: Reopening closed tabs via Cmd + Shift + T is not working when these tabs are closed using Cmd + W (#8564) --- .../BrowserViewController+KeyCommands.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+KeyCommands.swift b/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+KeyCommands.swift index d44bf33245c..9cb4dedaeb5 100644 --- a/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+KeyCommands.swift +++ b/Sources/Brave/Frontend/Browser/BrowserViewController/BrowserViewController+KeyCommands.swift @@ -73,6 +73,8 @@ extension BrowserViewController { hideReaderModeBar(animated: false) } + // Initially add the tab to recently closed and remove it from Tab Data after + tabManager.addTabToRecentlyClosed(currentTab) tabManager.removeTab(currentTab) }