3 ms·
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
by okamiueru 28d ago
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?
- wongarsu 28d ago> all of the things you mention act on keydown Because they listed the exceptions to the "act on keyup" rule
- chrismorgan 28d agoIf only one case follows your rule, and everything else ever implemented from the start of personal computers is an exception, your rule is awry.
- stavros 28d agoThe GP means that, if you hold space down on a button, you can then tab to another button without activating the first one.
- invalidusernam3 28d agoNon 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).
- Xirdus 28d agoPhysical 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.