in chrome browser (or any browser), when you select a word and then use the arrow keys to move the cursor, how is that done within the browser?

0

I am trying to understand how the cursor works within web browser and how the arrow keys move the cursor and the highlighted text (as I see on most websites it changes line accurately most of the time).

I am mainly interested in seeing is there an api that I can use with browser extensions, or failing that client-side javascript.

user3038404

Posted 2019-08-08T22:56:52.467

Reputation: 1

Just a comment, but I believe this is a function of the OS, etc (at least if you're talking about Shift + Arrow Keys). If I am not misunderstanding your description, you can get the same results in e.g. Notepad. This likely has nothing to do with the browser itself. – Anaksunaman – 2019-08-14T00:50:06.487

Oh okay, that makes more sense! – user3038404 – 2019-08-15T01:27:36.000

No answers