# Cordova Ionic Keyboard Plugin

A keyboard plugin for Cordova apps.

* Repository: <https://github.com/ionic-team/cordova-plugin-ionic-keyboard>
* Plugin ID/package name: `cordova-plugin-ionic-keyboard`
* Tested version: `2.2.0`

{% hint style="info" %}
To check the third party Cordova plugins, you need to create a custom build debugger ([Android version](https://en.docs.monaca.io/products_guide/debugger/installation/debugger_android#build-and-install-a-custom-monaca-debugger) or [iOS version](https://en.docs.monaca.io/products_guide/debugger/installation/debugger_ios#building-a-custom-monaca-debugger)).
{% endhint %}

## Demo

[<img src="https://docs.monaca.io/images/common/import_img.png" alt="" data-size="line">Import the Ionic keyboard demo to your Monaca account](https://monaca.mobi/ja/directimport?pid=64b778bae788852a64ea01cc)![](https://docs.monaca.io/images/samples/ionic_keyboard.png)

## Enable the plugin in Monaca IDE

1. From the IDE menu, go to **Config → Manage Cordova Plugins** .
2. Click the **Import Cordova Plugin** button. Then, you can choose to import the plugin using a ZIP file or a URL/package name.

## API references

This section describes some of the main functions used in our [Demo](https://monaca.mobi/directimport?pid=5b29e4e1e788857854dba6d9). For complete API references, please refer to the [repository](https://github.com/ionic-team/cordova-plugin-ionic-keyboard).

### show()

Show the keyboard.

```javascript
Keyboard.show();
```

{% hint style="info" %}
`Keyboard.show()` is not supported in the iOS due to the platform limitations. Therefore, please use `focus()` of the  `input` element instead.
{% endhint %}

**Example**

```javascript
//For Android
Keyboard.show();

//For iOS
inputElement.focus();
```

### hide()

Hide the keyboard.

```javascript
Keyboard.hide();
```

**Example**

```javascript
Keyboard.hide();
```
