We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afcec15 commit d1988aaCopy full SHA for d1988aa
term.go
@@ -135,6 +135,8 @@ func (t *Terminal) MinSize() fyne.Size {
135
136
// MouseDown handles the down action for desktop mouse events.
137
func (t *Terminal) MouseDown(ev *desktop.MouseEvent) {
138
+ fyne.CurrentApp().Driver().CanvasForObject(t).Focus(t)
139
+
140
if t.hasSelectedText() {
141
t.clearSelectedText()
142
}
@@ -295,6 +297,8 @@ func (t *Terminal) TouchCancel(ev *mobile.TouchEvent) {
295
297
296
298
// TouchDown handles the down action for mobile touch events.
299
func (t *Terminal) TouchDown(ev *mobile.TouchEvent) {
300
301
302
if t.onMouseDown != nil {
303
t.onMouseDown(1, 0, ev.Position)
304
0 commit comments