Ladybird/AppKit: Send correct mouse event on right click

This commit is contained in:
Nico Weber 2024-06-27 22:48:59 +02:00 committed by Tim Flynn
parent 850859f645
commit 8859bd3b78

View file

@ -1388,7 +1388,7 @@ static void copy_data_to_clipboard(StringView data, NSPasteboardType pasteboard_
{
[[self window] makeFirstResponder:self];
auto mouse_event = Ladybird::ns_event_to_mouse_event(Web::MouseEvent::Type::MouseDown, event, self, [self scrollView], Web::UIEvents::MouseButton::Primary);
auto mouse_event = Ladybird::ns_event_to_mouse_event(Web::MouseEvent::Type::MouseDown, event, self, [self scrollView], Web::UIEvents::MouseButton::Secondary);
m_web_view_bridge->enqueue_input_event(move(mouse_event));
}