Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Jellybean上的空白键盘输入(PhoneGap)?_Android_Cordova - Fatal编程技术网

Android Jellybean上的空白键盘输入(PhoneGap)?

Android Jellybean上的空白键盘输入(PhoneGap)?,android,cordova,Android,Cordova,我对果冻豆键盘有个奇怪的问题。当我的用户升级他们的操作系统时,只要他们试图使用键盘输入数据,键盘就不会输入数据。句号 这很奇怪,因为你确实可以专注于一个文本区域,但在键盘上打字没有输出 有人知道有人在修理吗?更具体地说,我的平台是PhoneGap 1.9.0,项目中没有任何其他原始java文件,我的应用程序清单如下: <application android:icon="@drawable/icon" android:label="@string/app_n

我对果冻豆键盘有个奇怪的问题。当我的用户升级他们的操作系统时,只要他们试图使用键盘输入数据,键盘就不会输入数据。句号

这很奇怪,因为你确实可以专注于一个文本区域,但在键盘上打字没有输出

有人知道有人在修理吗?更具体地说,我的平台是PhoneGap 1.9.0,项目中没有任何其他原始java文件,我的应用程序清单如下:

<application
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:configChanges="orientation|keyboardHidden|screenSize">
        <activity
            android:name=".App"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

    </application>
以下是Sencha Touch 2生成的表单的来源:

config: {
        padding: 20,
        items: [
        {
            xtype: 'image',
            src: 'resources/img/logo-splash.png',
            width:250,
            height: 229,
            baseCls: 'login-splash'
        },
        {
            xtype: 'fieldset',
            defaults: {  
                required: true,  
                labelAlign: 'left',  
                labelWidth: '35%'  
            },  
            items: [  
            {  
                xtype: 'emailfield',  
                name : 'email',  
                label: 'Email',  
                clearIcon: true  
            }, {  
                xtype: 'passwordfield',  
                name : 'password',  
                label: 'Password',  
                clearIcon: true  
            }],

        }, 
        {
            xtype: 'button',
            text: 'Login',
            ui: 'action',
            id: 'loginBtn',
            baseCls: 'btn-orange ui-rd'
        }
        ]
    },
然后是Sencha的最终HTML输出(在webkit浏览器上查看):

EmailPassword
谢谢


澄清:问题恰恰是当字段被聚焦时,键盘会弹出,但当你按下键时,它不会填充文本

我能够通过将PhoneGap从1.9.0升级到2.0.0来解决这个问题

我不确定确切的原因是什么,但我也在这里向社区发了一篇帖子:


我的直觉是,这与Cordova处理Javascript事件和键盘事件的方式有关。但尽管如此,它现在仍在发挥作用。

问题是什么?他们不能在你的HTML表单上键入内容?就是这样,不知道为什么,但字段是集中的,键盘会弹出,但当你按下键时,它不会填充文本。我能看看你的HTML表单吗?输入中是否有maxlength属性?没问题,它实际上是Sencha Touch 2生成的表单,但我会将其添加到问题中,谢谢@alexiscarter,没有maxlength属性,我添加了由Sencha生成的最终HTML输出
config: {
        padding: 20,
        items: [
        {
            xtype: 'image',
            src: 'resources/img/logo-splash.png',
            width:250,
            height: 229,
            baseCls: 'login-splash'
        },
        {
            xtype: 'fieldset',
            defaults: {  
                required: true,  
                labelAlign: 'left',  
                labelWidth: '35%'  
            },  
            items: [  
            {  
                xtype: 'emailfield',  
                name : 'email',  
                label: 'Email',  
                clearIcon: true  
            }, {  
                xtype: 'passwordfield',  
                name : 'password',  
                label: 'Password',  
                clearIcon: true  
            }],

        }, 
        {
            xtype: 'button',
            text: 'Login',
            ui: 'action',
            id: 'loginBtn',
            baseCls: 'btn-orange ui-rd'
        }
        ]
    },
<div class="x-inner x-form-fieldset-inner" id="ext-element-129"><div class="x-container x-field-text x-field x-label-align-left x-field-required x-field-labeled x-form-label-nowrap x-empty" id="ext-emailfield-1"><div class="x-form-label" id="ext-element-131" style="width: 35% !important; "><span id="ext-element-132">Email</span></div><div class="x-component-outer" id="ext-element-130"><div id="ext-input-1" class="x-field-input"><input id="ext-element-133" class="x-input-el x-form-field x-input-email" type="email" autocapitalize="off" name="email"><div class="x-clear-icon" id="ext-element-135"></div><div class="x-field-mask" id="ext-element-134"></div></div></div></div><div class="x-container x-field-text x-field x-label-align-left x-field-required x-field-labeled x-form-label-nowrap x-empty" id="ext-passwordfield-1"><div class="x-form-label" id="ext-element-137" style="width: 35% !important; "><span id="ext-element-138">Password</span></div><div class="x-component-outer" id="ext-element-136"><div class="x-field-input" id="ext-input-2"><input class="x-input-el x-form-field x-input-password" type="password" id="ext-element-139" autocapitalize="off" name="password"><div class="x-clear-icon" id="ext-element-141"></div><div class="x-field-mask" id="ext-element-140"></div></div></div></div></div>