6 ms·
Keydown event doesn't fire on iOS when arrow keys pressed on external keyboard
- yread 8y agoI hate iOS: https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile https://developer.mozilla.org/en-US/docs/Web/Events/click#Sa...
- bitwize 8y agoWell, Steve Jobs did try to discourage us from using the arrow keys back in 1984...
- yknx4 8y agoIt's not a bug, is a feature...
- porphyrogene 8y agoIs it possible this was done for a reason? Users on the linked page report that it's not just keydown but also keypress and keyup. If the first two were disabled but keyup still worked that decision may have some (limited) justification because keyup is the only one that necessarily fires once per physical input by the user. I don't want to give Apple more credit than they deserve but it is equally foolish to assume that everything that is not how I expect it to be is a mistake. Then again, maybe they just don't want people using iOS when they "should" be using OSX, which is the kind of judgemental decision-making for which Apple is known. From the linked bug report: > Would be a huge benefit to the iPad community if arrow key events fired. That explains the lack of support by sites like Cloud9, plnkr, etc... I do a lot of web development in those IDEs to teach people and to brainstorm when I'm not at my computer so it would be awesome if the team got this in and it made its way to IOS.
- sigfubar 8y ago> it is equally foolish to assume that everything that is not how I expect it to be is a mistake This humble attitude saves me a lot of time on a daily basis.
- yjftsjthsd-h 8y agoIt also saves face; it is quite embarrassing to realize you've been complaining about something and suddenly discover that it works fine and you are wrong.
- om2 8y agoIn this case the humility is unnecessary, as the linked bug report includes Apple WebKit folks acknowledging that it's a bug and pointing to our internal bug tracking it (turns out it has to be fixed below the WebKit level).
- apsdsm 8y agoI know there's some kind of joke around here about how the real error is using the iPad like a computer...
- mfreser 8y agoWhats a computer?
- zozbot123 8y agoFinally! I knew that the whole modal editing thing and the `hjkl` commands would become useful some day!
- lukeh 8y agoDefinitely remember some issue where I wasn't getting events for one of the arrow keys (can't recall which off-hand) in my iOS app. Also, there's no public UIKit API for getting key up events.
- deleted 8y ago[deleted]
- time-domain0 8y agoMaybe this is related: I tried using Codeanywhere on iOS with a first gen Magic Keyboard. Most modifier keys and arrows weren't working properly, which made Vim, tmux and readline a PITA. Anyone else have problems also with Ssh terminals or iVim on iOS?
- freehunter 8y agoThat's a common complaint with AWS Cloud9. The editor and everything about the technology supports an iPad just fine, but the keyboard arrow keys don't work so it's basically pointless.
- petecox 8y agoAs the resolution of the bug report suggests, the iOS toolkit needs fixing. It's the symptom of a phone OS evolving into something more general. c.f. In Android land, by design, none of the web browsers support desktop-style spellcheck. So if I'm typing a comment on Hacker News using my usb keyboard, I get no red underscore indicatting I've missspelled a woord. The workaround is to keep the big, ugly, onscreen keyboard taking up half my 21" screen; apologies for my bad spelling!