1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 05:37:43 +00:00

LibGUI: Add button handler for middle mouse clicks

This commit is contained in:
networkException 2022-07-10 17:20:04 +02:00 committed by Andreas Kling
parent 18c84d2e63
commit f9212ac02e
4 changed files with 17 additions and 0 deletions

View file

@ -140,6 +140,9 @@ void AbstractButton::mouseup_event(MouseEvent& event)
case MouseButton::Primary:
click(event.modifiers());
break;
case MouseButton::Middle:
middle_mouse_click(event.modifiers());
break;
default:
VERIFY_NOT_REACHED();
}