Hi,

I am not entirely sure about what you meant by "two positions". Are
you talking to position before the selection change and after? If so
you need to record the previous position yourself.

Keep in mind you don't really need this API if you are not controlling
the input from another app, e.g. keyboard app. Web comes with a
well-established selection API for pages to do things on their own
input.


On Sat, May 3, 2014 at 12:50 AM, A. Crespo <[email protected]> wrote:
> Hi there,
>
> I would like to make a text selection between two positions. Is there any
> way to get the current position of the cursor? I'm using:
> navigator.mozInputMethod.inputcontext.onselectionchange
> to check when did the position change, but I don't know how to get the
> difference between those two positions.
>
> Also, would you know where I could get some information about the "inputs"
> field used in the manifest file?
>
> Regards.
>
> _______________________________________________
> dev-b2g mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-b2g
>



-- 
Tim Guan-tin Chien, Engineering Manager and Front-end Lead, Firefox
OS, Mozilla Corp. (Taiwan)
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to