1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibVT: Use the middle mouse button for pasting (instead of right)

This will allow us to show a context menu when you right-click,
which will feels more consistent with the rest of the Serenity desktop.
This commit is contained in:
Andreas Kling 2019-11-20 21:22:31 +01:00
parent ef552add6c
commit 6fa26c73e2

View file

@ -513,7 +513,7 @@ void TerminalWidget::mousedown_event(GMouseEvent& event)
m_selection_end = {};
}
update();
} else if (event.button() == GMouseButton::Right) {
} else if (event.button() == GMouseButton::Middle) {
if (m_ptm_fd == -1)
return;
auto text = GClipboard::the().data();