Cordova plugin to show/hide keyboard on an android device.
The plugin can be installed via Cordova-CLI.
Execute from the projects root folder:
$ cordova plugin add https://github.com/syware/cordova-plugin-onoff-keyboard.git
To remove the plugin
$ cordova plugin remove cordova-plugin-onoff-keyboard
The plugin creates the object KeyboardPlugin
and is accessible after deviceready has been fired.
document.addEventListener('deviceready', function () {
// KeyboardPlugin is now available
}, false);
When a field get focus, you can show or hide the keyboard
// Show keyboard
KeyboardPlugin.show();
// Hide keyboard
KeyboardPlugin.hide()();
This software is released under the Apache 2.0 License.
© 2017 Syware Sàrl