Re: cancelability in level 1 of input-events spec

Hey again,
after experimenting a bit more, it seems like I am really not in the
composition mode when I use the gboard. Maybe this is because I have turned
off word suggestions?

If this is the case, then this seems to introduce a third mode besides
cancelable keyboard and non-canceleable IME-mode: a non-cancelable, non-IME
mode where keydown events cannot be canceled. Is this possible?

That would mean that on Android mobile there are at least three modes to
take care of:

1. virtual key clicks, cancelable
2. IME, non-cancelable
3. non-IME, non-cancelable

And every keyboard can combine these in different combinations. I hope we
can simplify this a bit. When talking to other JS devs. it sounds like most
have pretty much given up on dealing with the situation and diffing the DOM
ends up being more simple.

The beforeinput level 2 spec was an attempt at that, but with this third
mode, it seems like that wouldn't even be enough.

If there is this thrid mode - couldn't we make those keydown events of the
third type cancelable at least? Taht would bring them closer to other
keyboard input and combined with beforeinput, we would be down to having to
deal with two different wways of inputting.


-- 
Johannes Wilm
http://www.johanneswilm.org
tel: +1 (520) 399 8880

Received on Wednesday, 28 June 2017 17:15:25 UTC