aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/aerc.go
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-09-14 15:33:11 -0500
committerRobin Jarry <robin@jarry.cc>2022-09-15 20:59:13 +0200
commit599b9f6d468ffb31665d0d97f4ae09ba651d306a (patch)
tree0a00425ade7fcd9ff218fcaec568dfea0ba1af6f /widgets/aerc.go
parent77f69501d6483bf94e85cd8b9cb520c3d9175a54 (diff)
downloadaerc-599b9f6d468ffb31665d0d97f4ae09ba651d306a.tar.gz
terminal: improve mouse support
Improve terminal mouse support by forwarding mouse events to the terminal widget. Clicking and dragging are supported. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'widgets/aerc.go')
-rw-r--r--widgets/aerc.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/widgets/aerc.go b/widgets/aerc.go
index e210916f..7ba1ea4e 100644
--- a/widgets/aerc.go
+++ b/widgets/aerc.go
@@ -348,9 +348,6 @@ func (aerc *Aerc) Event(event tcell.Event) bool {
return false
}
case *tcell.EventMouse:
- if event.Buttons() == tcell.ButtonNone {
- return false
- }
x, y := event.Position()
aerc.grid.MouseEvent(x, y, event)
return true