News for hackers. Stuff that matters.
Re:Comments by a developer inside the Windows Media Player s... by Someone on Sunday September 27, 2020 @01:53AM (#24604517)
“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.

Re:Comments by a developer inside the Windows Media Player s... by williamdclt on Sunday September 27, 2020 @06:51AM (#24605711)
I'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
Re:Comments by a developer inside the Windows Media Player s... by fooker on Sunday September 27, 2020 @01:36PM (#24608432)
Ligatures pretty much work this way.
Re:Comments by a developer inside the Windows Media Player s... by jml7c5 on Sunday September 27, 2020 @02:12AM (#24604598)
I 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.

Re:Comments by a developer inside the Windows Media Player s... by JdeBP on Sunday September 27, 2020 @05:22AM (#24605348)
Where on Earth have you been typing capital letters? One does have to press the modifier first on conventional home and personal computer keyboards.