Skip to content

Commit

Permalink
Alter copy paste behaviour
Browse files Browse the repository at this point in the history
Alter the copy paste behaviour to make right click a copy paste
  • Loading branch information
mgazza authored and andydotxyz committed Nov 15, 2024
1 parent 02dbb6b commit 9755d1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion term.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ func (t *Terminal) MouseDown(ev *desktop.MouseEvent) {
if t.hasSelectedText() {
t.copySelectedText(fyne.CurrentApp().Clipboard())
t.clearSelectedText()
} else if ev.Button == desktop.MouseButtonSecondary {
}
if ev.Button == desktop.MouseButtonSecondary {
t.pasteText(fyne.CurrentApp().Clipboard())
}

Expand Down

0 comments on commit 9755d1f

Please sign in to comment.