News for hackers. Stuff that matters.
Re:Twitter for Mac is incapable of accepting certain letters... by dkonofalski on Wednesday October 30, 2019 @03:39PM (#21401668)
>don't most programs register a shortcut key or two?

Yes which is exactly why I think it's likely he's being disingenuous about the root cause of this. Shortcut keys typically need modifier keys and, even in the instance where they don't, there has to be some check from the app to determine whether an input field or the main window has focus.

To be clear, I'm not saying it's 100% certain that this isn't an Apple issue but, based on Twitter's track record with their apps, this likely is on Twitter.

Re:Twitter for Mac is incapable of accepting certain letters... by mackey on Wednesday October 30, 2019 @05:00PM (#21402669)
Are you an iOS/Mac developer? Because in this case it sounds like the UIKit/AppKit isn't respecting the responder chain, which would be an Apple bug.
Re:Twitter for Mac is incapable of accepting certain letters... by lilyball on Wednesday October 30, 2019 @05:17PM (#21402847)
It's entirely possible where in Catalyst if a UIKeyCommand is registered that uses a non-modified letter, it overrides text input. Having said that, I can't imagine why Twitter for Mac would have solo-letter key commands registered during the login flow, and if they did then I can't imagine why they wouldn't also interfere during tweet composing. Or rather, I can imagine, but the scenarios I'm constructing would imply extremely contorted view controller hierarchies that make no sense.
Re:Twitter for Mac is incapable of accepting certain letters... by MikeBeas on Wednesday October 30, 2019 @05:26PM (#21402950)
Can’t imagine why this would cause it to delete all input in the field when one of those characters is typed in using “reveal password” mode though. If you enable reveal, type in a string containing b, and then switch off reveal mode and add another character, it deletes the whole password. If it was just dropping inputs that would be one thing but this seems to be aggressively refusing to allow them in the field.
Re:Twitter for Mac is incapable of accepting certain letters... by mackey on Wednesday October 30, 2019 @05:51PM (#21403204)
It sounds like its specific to secure text fields, which I assume is why it doesn't interfere with tweeting. But thats a fair question about setting those up before login. My guess is those registrations aren't happening at the login VC level, or maybe in some global container VC. But I don't think that matters too much, because there are certainly use cases where you might want to show a secure text field even when logged in and you want shortcuts registered.
Re:Twitter for Mac is incapable of accepting certain letters... by dkonofalski on Wednesday October 30, 2019 @07:20PM (#21404087)
I am and that's why this is so surprising to me. No other app is reporting this type of behavior and Twitter is known for shitty Mac apps. I highly doubt that the regression could cause this unless it was done incorrectly to begin with. Otherwise, UIKit/AppKit would be doing the same for every other app. We may hear about that in the next day or two but, until that happens, I have a feeling this is all on Twitter.
Re:Twitter for Mac is incapable of accepting certain letters... by mackey on Wednesday October 30, 2019 @09:36PM (#21404884)
It looks like its reproducible in a sample project.

https://twitter.com/nolanobrien/status/1189623346033381376?s...

Re:Twitter for Mac is incapable of accepting certain letters... by dkonofalski on Thursday October 31, 2019 @04:03PM (#21413104)
That doesn't mean much if they implemented it in the exact same way they did for the full app. Unless we see this happening in other apps, I'll default to the implementation being the problem rather than the API itself.