LibVT: Don't implicitly copy the selection on double-click or mouse-up

This commit is contained in:
Andreas Kling 2019-11-20 21:44:13 +01:00
parent dabdd484f7
commit 386bf8b763
Notes: sideshowbarker 2024-07-19 11:08:00 +09:00
2 changed files with 0 additions and 13 deletions

View file

@ -498,9 +498,6 @@ void TerminalWidget::doubleclick_event(GMouseEvent& event)
m_selection_start = { position.row(), start_column };
m_selection_end = { position.row(), end_column };
if (has_selection())
GClipboard::the().set_data(selected_text());
}
GFrame::doubleclick_event(event);
}
@ -554,15 +551,6 @@ void TerminalWidget::mousemove_event(GMouseEvent& event)
update();
}
void TerminalWidget::mouseup_event(GMouseEvent& event)
{
if (event.button() != GMouseButton::Left)
return;
if (!has_selection())
return;
GClipboard::the().set_data(selected_text());
}
void TerminalWidget::mousewheel_event(GMouseEvent& event)
{
if (!is_scrollable())

View file

@ -67,7 +67,6 @@ private:
virtual void keydown_event(GKeyEvent&) override;
virtual void mousedown_event(GMouseEvent&) override;
virtual void mousemove_event(GMouseEvent&) override;
virtual void mouseup_event(GMouseEvent&) override;
virtual void mousewheel_event(GMouseEvent&) override;
virtual void doubleclick_event(GMouseEvent&) override;
virtual void focusin_event(CEvent&) override;