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 3214f2c5bf
commit 450b9ffcfd
Notes: sideshowbarker 2024-07-17 00:25:35 +09:00

View file

@ -1387,7 +1387,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));
}