Skip to content

Comment on P99 0 ms* autocomplete for 240M domain namesparent

Comments

Can you give some specific examples? In my experience (which I also verified to make sure), all of the things you mention act on keydown. The exceptions are on multi-key combinations, which follow a special key that is held down while modifiers are entered, where the action is completed by releasing this special key (ALT + TAB [...TAB | SHIFT]) being a common example.

TAB is otherwise immediate, as is ESC, and the examples of typing, as well. So I'm left wondering, how do they have it wrong?

Non latin characters are sometimes inputted by holding down a key. For example on my keyboard holding down z shows ź,ž and ż with a corresponding number to select which one I would like to type. I haven't checked but one would assume if you're detecting keydown the input at that time will be z, and keyup would record ž (or whatever was selected).

Physical keyboards and virtual keyboards are different. Traditionally, ź and ż (my keyboard doesn't have ž) are inputted on keydown X or keydown Z while Alt modifier is active.

The GP means that, if you hold space down on a button, you can then tab to another button without activating the first one.

all of the things you mention act on keydown

Because they listed the exceptions to the "act on keyup" rule

If only one case follows your rule, and everything else ever implemented from the start of personal computers is an exception, your rule is awry.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.