News for hackers. Stuff that matters.
Re:Having trouble with the IRS site? Try all caps by renaudg on Wednesday April 29, 2020 @09:43AM (#23019027)
Here's another input filtering bad practice that most US front-end devs don't seem to know about (but really should when they build global websites)

Don't assume a specific keyboard layout when you're trying to filter out non-numeric values in a text field

I use a French keyboard, and numbers on the top keyboard row are accessed with Shift. A unmodified keypress in this row is for various accented characters, quotes, parentheses and a few others. In other words, it's the opposite of a US/UK keyboard.

Almost every week I come across a website (including a large US stock broker) whose numeric fields seem to block out modifier keys. I have to switch my Macbook to US layout just to type those in (because conveniently, they also disable pasting in those fields of course)

This is very widespread (is that part of a popular front-end framework maybe ?) and difficult to report, because most devs in English-speaking countries never experience the issue first-hand.

Re:Having trouble with the IRS site? Try all caps by earthboundkid on Wednesday April 29, 2020 @10:08AM (#23019393)
I didn't know that about the French keyboard. The Japanese keyboard is mostly a mess because they have to shove a bunch of extra characters into the same physical space, but the one thing I miss is that they have @ as an unshifted character. It's very convenient for that. I'd gladly trade away unshifted ` for unshifted @.
Re:Having trouble with the IRS site? Try all caps by renaudg on Thursday April 30, 2020 @01:43PM (#23033656)
@ is also unshifted on the French keyboard.