0

I have a

<input type="text"...

...on a page, and need to copy all the changes so that I can display them in a wasm app. I'm stuck with this "select all" operation on Gboard. Lets say that I type ab, then select all. (Select all command is reachable in the 4 black squares menu and then the "carret" icon).

The series of events that I get, (and that can easily be checked with this tool InputEvent viewer) is:

keydown: Unk
beforeinput: a
input: a
keyup: Unk

keydown: Unk
beforeinput: b
input: b
keyup:Unk

keyup: Shift
keydown: Shift  (this is were they become selected)
keyup: Shift

So, this unbalanced sequence of shift keys that starts with a keyup somehow does the select-all operation. What is going on here, and how can I debug this? My logs also show this sequence, and the text is selected when the keyup for the shift key happens.

My goal is somehow detect that the "select all" operation has happened. Please help.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.