Skip to content

Commit

Permalink
Ladybird/AppKit: Send correct mouse event on right click
Browse files Browse the repository at this point in the history
  • Loading branch information
nico authored and trflynn89 committed Jun 27, 2024
1 parent 3214f2c commit 450b9ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ladybird/AppKit/UI/LadybirdWebView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ - (void)rightMouseDown:(NSEvent*)event
{
[[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));
}

Expand Down

0 comments on commit 450b9ff

Please sign in to comment.