Monaca Docs
Search…
Cordova Ionic Keyboard Plugin
A keyboard plugin for Cordova apps.
To check the third party Cordova plugins, you need to create a custom build debugger (Android version or iOS version).

Demo

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. For complete API references, please refer to the repository.

show()

Show the keyboard.
1
Keyboard.show();
Copied!
Keyboard.show() is not supported in the iOS due to the platform limitations. Therefore, please use focus() of the input element instead.
Example
1
//For Android
2
Keyboard.show();
3
4
//For iOS
5
inputElement.focus();
Copied!

hide()

Hide the keyboard.
1
Keyboard.hide();
Copied!
Example
1
Keyboard.hide();
Copied!
Last modified 2mo ago