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
commit 6fa26c73e2
Notes: sideshowbarker 2024-07-19 11:08:08 +09:00

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();