Skip to content

Tap on input-field doesn't show keyboard for value entry (solution included) #1

@gbmoody

Description

@gbmoody

On iOs 6.1.3 on an iPad 4, when using either this plugin or Stephen von Takach's original jquery.ui.touch.js, it is not possible to access the virtual keyboard in order to type into an <input type="text" ...> field. Stephen's issue tracker on googlecode contains a relevant thread started by Roland Caspers in Feb 2012. Roland provided a patch that was reported in Sep 2012 to work on iOS 5 but not on iOS6. I modified Roland's patch to fix this problem for iOS6.1.3 on an iPad 4, but I have no other iThings for testing it.

The updated patch goes into the "touchstart" case in iPadTouchHandler(), and it can be applied either to this plugin or to Stephen's original to fix this problem:

        switch (event.type) {
            case "touchstart":
                if ($(event.changedTouches[0].target).is("select")) {
                    return;
                }
            // patch begins here
                if ($(event.changedTouches[0].target).is("input")) {
                    return false; // allow access to keyboard on text input
                }
            // patch ends here
                iPadTouchStart(event); /*We need to trigger two events here to support one touch drag and drop*/
                event.preventDefault();
                return false;
                break;

Thanks for your work on this plugin, which (with the fix above) is exactly what I needed!
George Moody

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions