From 983356e7b70b5996452aa1c5517dd84b2a8f15a4 Mon Sep 17 00:00:00 2001 From: Cepera Date: Mon, 20 Mar 2023 04:11:09 +0300 Subject: [PATCH] =?UTF-8?q?Copy=20keyboard=20shortcut=20is=20not=20assigne?= =?UTF-8?q?d=20to=20'copy=20clean=20link'=20in=20contex=E2=80=A6(uplift=20?= =?UTF-8?q?#17487)=20(#17610)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Copy keyboard shortcut is not assigned to 'copy clean link' in contex… (#17487) --- browser/ui/views/omnibox/brave_omnibox_view_views.cc | 2 +- browser/ui/views/omnibox/brave_omnibox_view_views.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/ui/views/omnibox/brave_omnibox_view_views.cc b/browser/ui/views/omnibox/brave_omnibox_view_views.cc index ba0d6adb27dc..442c0aa0deeb 100644 --- a/browser/ui/views/omnibox/brave_omnibox_view_views.cc +++ b/browser/ui/views/omnibox/brave_omnibox_view_views.cc @@ -80,6 +80,7 @@ bool BraveOmniboxViewViews::AcceleratorPressed( CopySanitizedURL(url_to_copy.value()); return true; } +#endif // BUILDFLAG(IS_WIN) bool BraveOmniboxViewViews::GetAcceleratorForCommandId( int command_id, @@ -96,7 +97,6 @@ bool BraveOmniboxViewViews::GetAcceleratorForCommandId( } return OmniboxViewViews::GetAcceleratorForCommandId(command_id, accelerator); } -#endif // BUILDFLAG(IS_WIN) #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) void BraveOmniboxViewViews::ExecuteTextEditCommand( diff --git a/browser/ui/views/omnibox/brave_omnibox_view_views.h b/browser/ui/views/omnibox/brave_omnibox_view_views.h index 1e9b8e4b9bc0..5dca77b58e7d 100644 --- a/browser/ui/views/omnibox/brave_omnibox_view_views.h +++ b/browser/ui/views/omnibox/brave_omnibox_view_views.h @@ -28,9 +28,10 @@ class BraveOmniboxViewViews : public OmniboxViewViews { #if BUILDFLAG(IS_WIN) // View overrides: bool AcceleratorPressed(const ui::Accelerator& accelerator) override; +#endif // BUILDFLAG(IS_WIN) bool GetAcceleratorForCommandId(int command_id, ui::Accelerator* accelerator) const override; -#endif // BUILDFLAG(IS_WIN) + #if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_MAC) // ui::views::Textfield void ExecuteTextEditCommand(ui::TextEditCommand command) override;