4 ms·
“But key events should be on key-down” Should they, in general? If you want to press a key combination, you never press the two keys at exactly the same time.
by Someone 6y ago
“But key events should be on key-down”
Should they, in general? If you want to press a key combination, you never press the two keys at exactly the same time. So, if key events were on key-down, you would have to press modifiers before letters to type capital letters, use keyboard shortcuts, etc. I think that would be annoying and slow typists down.
It also rules out using bare modifier key presses as input methods, but that is less of an impact.
- jml7c5 6y agoI would argue keydown is generally right, for the sake of latency and immediacy of action. Do people who want a capital 'A' ever intentionally type A-Shift instead of Shift-A? I've never heard of it before.
- JdeBP 6y agoWhere on Earth have you been typing capital letters? One does have to press the modifier first on conventional home and personal computer keyboards.
- williamdclt 6y agoI've never seen a system where you can press modifiers _after_ letters, what are you using? Letters are definitely inserted on key down on all windows/linux/macos I've used
- fooker 6y agoLigatures pretty much work this way.