Browse Source

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.
Andreas Kling 5 years ago
parent
commit
6fa26c73e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libraries/LibVT/TerminalWidget.cpp

+ 1 - 1
Libraries/LibVT/TerminalWidget.cpp

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