0

在 app.js 我有,

    if (window.cordova && window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        cordova.plugins.Keyboard.disableScroll(true);
    } 

在我的 HTML 中,我有

<ion-footer-bar keyboard-attach class="bar-stable item-input-inset" style="margin-bottom: 50px; height: 60px; background-color: white;">
    <input style="width: 100%;" type="text" placeholder="{{'text_input' | translate}}" ng-model="post.new"/>
</ion-footer-bar>

当键盘处于活动状态时,我想在 5.0 以上的 android 中隐藏笑脸按钮。我该怎么做?我不希望用户在文本字段中输入笑脸。

4

1 回答 1

1

一个简单的技巧是将输入字段的输入类型更改为其他内容。我根据需要将输入类型更改为 url 并且它有效。

<ion-footer-bar keyboard-attach class="bar-stable item-input-inset" style="margin-bottom: 50px; height: 60px; background-color: white;">
    <input style="width: 100%;" type="url" placeholder="{{'text_input' | translate}}" ng-model="post.new"/>
</ion-footer-bar>

希望这可以帮助..

于 2017-02-27T13:44:30.223 回答