在Android杰利贝恩(PhoneGap的)空白键盘输入? [英] Blank keyboard input on Android Jellybean (PhoneGap)?

查看:152
本文介绍了在Android杰利贝恩(PhoneGap的)空白键盘输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有键盘的Jellybean一个奇怪的问题。当我的用户升级其操作系统,随时随地他们试图用键盘来它只是不输入输入数据。期。

I have a weird issue with Jellybean keyboard. When my users upgraded their OS, anytime they tried to use the keyboard to input data it just doesn't type. Period.

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

It's weird since you can indeed focus on a text area, but typing on the keyboard has no output.

任何人都知道的修复程序?要获得更具体,我的平台是PhoneGap的1.9.0,我没有项目中的任何其他原料的java文件,我的应用程序清单如下:

Anyone aware of a fix? To get more specific, my platform is PhoneGap 1.9.0, I don't have any other raw java files in the project, and my application manifest is below:

<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>

我的onCreate是非常简单和低于以及

My onCreate is very simple and is below as well:

public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      super.setIntegerProperty("loadUrlTimeoutValue", 60000);
      super.loadUrl("file:///android_asset/www/index.html");
      this.appView.setInitialScale(100);
    }

下面是正在生成表单源煎茶触摸2:

Here's the source for the form being generated by 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'
        }
        ]
    },

和再由煎茶最终输出HTML(在WebKit浏览器查看):

And then the final HTML output by Sencha (viewed on a webkit browser):

<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>

谢谢!

对于澄清:的问题是,什么时候该领域主要集中在键盘弹出,但是当你打的钥匙并不在文本中填写

For clarification: the problem is exactly when the field is focused the keyboard pops up, but when you hit the keys it doesn't fill in the text

推荐答案

我能够通过升级的PhoneGap从1.9.0到2.0.0来解决问题。

I was able to resolve the issue by upgrading PhoneGap from 1.9.0 to 2.0.0.

我不知道是什么的确切原因,但这里我也发了一个帖子给社会:的http://community.phonegap.com/nitobi/topics/blank_keyboard_input_on_android_jellybean

I am not sure what was the exact cause, but I also made a post to the community here: http://community.phonegap.com/nitobi/topics/blank_keyboard_input_on_android_jellybean

我的直觉是,它涉及到的方式科尔多瓦在处理JavaScript事件和键盘事件。但尽管如此它的工作了。

My instinct is that it was related to a way Cordova was handling Javascript events and keyboard events. But nonetheless it's working now.

这篇关于在Android杰利贝恩(PhoneGap的)空白键盘输入?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆