mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibVT: Don't implicitly copy the selection on double-click or mouse-up
This commit is contained in:
parent
dabdd484f7
commit
386bf8b763
Notes:
sideshowbarker
2024-07-19 11:08:00 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/386bf8b763b
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())
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue