mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
widget: only ask for software keyboard once per click
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -276,7 +276,7 @@ func (e *Editor) processPointer(gtx layout.Context) {
|
||||
case gesture.ClickEvent:
|
||||
switch {
|
||||
case evt.Type == gesture.TypePress && evt.Source == pointer.Mouse,
|
||||
evt.Type == gesture.TypeClick:
|
||||
evt.Type == gesture.TypeClick && evt.Source != pointer.Mouse:
|
||||
prevCaretPos := e.caret.start
|
||||
e.blinkStart = gtx.Now
|
||||
e.moveCoord(image.Point{
|
||||
|
||||
Reference in New Issue
Block a user