Phonegap Build - 键盘打开自动

时间:2017-06-05 19:30:28

标签: javascript jquery cordova keyboard phonegap-build

我的问题是键盘。我有一个嵌入iframe的空白div。此iframe是来自Power BI的仪表板,并且有两个日期输入(用于过滤数据),当用户单击日历打开时,很好。

同时键盘打开和崩溃外翻。我尝试了很多用js来阻止键盘,但这是不可能的。一些例子:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.XXXX.app" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>XXXX</name>
    <description>
        A basic Framework7 template for PhoneGap.
    </description>
    <author email="XXXXXXX" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <preference name="android-minSdkVersion" value="14" />
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <preference name="BackupWebStorage" value="none" />
    </platform>
    <preference name="DisallowOverscroll" value="true" />
    <preference name="HideKeyboardFormAccessoryBar" value="true"/>
    <plugin name="cordova-plugin-whitelist" spec="~1.2.0" />
    <plugin name="cordova-plugin-console" spec="~1.0.1" />
    <plugin name="cordova-plugin-statusbar" spec="~1.0.1" />
    <platform name="ios">
        <icon src="./drawable-ldpi/img/volcano.png" platform="android" qualifier="ldpi" />
        <icon src="./drawable-mdpi/img/volcano.png" platform="android" qualifier="mdpi" />
        <icon src="./drawable-hdpi/img/volcano.png" platform="android" qualifier="hdpi" />
        <icon src="./drawable-xhdpi/img/volcano.png" platform="android" qualifier="xhdpi" />
        <icon src="./drawable-xxhdpi/img/volcano.png" platform="android" qualifier="xxhdpi" />
        <icon src="./drawable-xxxhdpi/img/volcano.png" platform="android" qualifier="fr-xxhdpi" />
    </platform>
</widget>

我在我的手机上测试,Android 7.0摩托罗拉。

任何人都知道如何阻止键盘?只有这个页面,因为我有登录页面。

感谢。

UPDATE - config.xml

   onClickMe() {
     this.series = [ {
    name: "Russian Federation",
    data: [4.743, 7.295, 7.175, 6.376, 8.153, 8.535, 5.247, -7.832, 4.3, 4.3]
  }, {
    name: "Germany",
    data: [0.010, -0.375, 1.161, 0.684, 3.7, 3.269, 1.083, -5.127, 3.690, 2.995]
  },{
    name: "World",
    data: [1.988, 2.733, 3.994, 3.464, 4.001, 3.939, 1.333, -2.245, 4.339, 2.727]
  }];
  }

0 个答案:

没有答案