mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
LibVT: Don't implicitly copy the selection on double-click or mouse-up
This commit is contained in:
parent
dabdd484f7
commit
386bf8b763
2 changed files with 0 additions and 13 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue