Search code examples
javascriptioshtmlwebmobile-safari

Can I use 'UIKeyboardTypeTwitter' as HTML input-type?


In native iOS Apps you can use UIKeyboardTypeTwitter to display a keyboard that has # and @ keys in default mode: Keyboard with UIKeyboardTypeTwitter

Is there any way to have such a keyboard in Safari? The Safari HTML Reference doesn't list it.


Solution

  • input[type="email"] is close, but it adds a . next to the @ button instead of a #

    seems like a "tweet" type (or something more generically named) would be a useful addition to webkit, but I couldn't find any input types that trigger the UIKeyboardTypeTwitter

    if there is an undocumented way to do it, mobile.twitter.com & m.facebook.com aren't using it:

    mobile safari: mobile.twitter.com new tweet keyboard example

    Seems like this would need escalated to a w3c request, although- Android doesn't appear to currently have a comparable keyboard mode.

    Update: Filed as a webkit enhancement request: https://bugs.webkit.org/show_bug.cgi?id=156135