From 6fa26c73e295b44c5569d5f5eaf92cad908b1c6e Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 20 Nov 2019 21:22:31 +0100 Subject: [PATCH] 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. --- Libraries/LibVT/TerminalWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/LibVT/TerminalWidget.cpp b/Libraries/LibVT/TerminalWidget.cpp index 438ceb4ca9..6296e1d738 100644 --- a/Libraries/LibVT/TerminalWidget.cpp +++ b/Libraries/LibVT/TerminalWidget.cpp @@ -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();