mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibGUI: Ignore right-clicks on HeaderViews
This prevents right-clicking a column header from making it appear depressed right before the context menu is shown.
This commit is contained in:
parent
6f5f9e6567
commit
d0813be65a
Notes:
sideshowbarker
2024-07-18 20:35:19 +09:00
Author: https://github.com/awesomekling
Commit: d0813be65a
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ void HeaderView::doubleclick_event(MouseEvent& event)
|
|||
|
||||
void HeaderView::mousedown_event(MouseEvent& event)
|
||||
{
|
||||
if (event.button() != GUI::MouseButton::Left)
|
||||
return;
|
||||
|
||||
if (!model())
|
||||
return;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue