You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Darryl Pogue (JIRA)" <ji...@apache.org> on 2014/06/18 23:08:26 UTC

[jira] [Commented] (CB-6974) Keyboard causes input focus issue

    [ https://issues.apache.org/jira/browse/CB-6974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14036384#comment-14036384 ] 

Darryl Pogue commented on CB-6974:
----------------------------------

This only happens if {{KeyboardShrinksView}} is true in config.xml.

> Keyboard causes input focus issue
> ---------------------------------
>
>                 Key: CB-6974
>                 URL: https://issues.apache.org/jira/browse/CB-6974
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Keyboard
>    Affects Versions: 3.5.0
>         Environment: iOS 6.1
>            Reporter: Darryl Pogue
>              Labels: iOS
>
> I've confirmed that this issue is caused by the keyboard plugin, because it does not happen when the keyboard plugin is disabled.
> If there is an input on the lower half of the page, when it is tapped, the keyboard will slide up, covering the input and not putting it in focus.
> In my config file I have the following:
> {code:xml|title=config.xml}
>     <preference name="HideKeyboardFormAccessoryBar" value="true" />
>     <preference name="KeyboardShrinksView" value="true" />
>     <preference name="DisableScrollingWhenKeyboardShrinksView" value="false" />
> {code}
> This appears to only happen when the input is on a page that is absolutely positioned.
> The best reference I can find about the issue is http://www.telerik.com/forums/click-on-input-levels-up-the-footer-on-the-keyboard-whitout-change-the-view-!- but the suggested change of setting the body height on deviceReady didn't work for me.
> It does not appear to be related to the status bar (as potentially stated in that thread). Removing the status bar plugin did not fix the problem.
> My guess is that it's related to hiding the accessory bar and intercepting the keyboard opening in Objective C, but I don't know enough about ObjC to know what would cause the focus to be lost :(



--
This message was sent by Atlassian JIRA
(v6.2#6252)