mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
Ladybird/AppKit: Send correct mouse event on right click
This commit is contained in:
parent
3214f2c5bf
commit
450b9ffcfd
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/nico Commit: https://github.com/LadybirdBrowser/ladybird/commit/450b9ffcfd Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/301
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue