mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 821979 - Specify valid selection offsets in onCreateInputConnection; r=blassey
This commit is contained in:
parent
e3b7925c5e
commit
0532328ecc
@ -360,9 +360,9 @@ class GeckoInputConnection
|
||||
}
|
||||
}
|
||||
|
||||
// We don't know the selection
|
||||
outAttrs.initialSelStart = -1;
|
||||
outAttrs.initialSelEnd = -1;
|
||||
Editable editable = getEditable();
|
||||
outAttrs.initialSelStart = Selection.getSelectionStart(editable);
|
||||
outAttrs.initialSelEnd = Selection.getSelectionEnd(editable);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user