mirror of
https://github.com/arnaucube/openEventsPlatformApp.git
synced 2026-02-07 11:46:39 +01:00
main added
This commit is contained in:
40
plugins/ionic-plugin-keyboard/www/ios/keyboard.js
Normal file
40
plugins/ionic-plugin-keyboard/www/ios/keyboard.js
Normal file
@@ -0,0 +1,40 @@
|
||||
|
||||
var argscheck = require('cordova/argscheck'),
|
||||
utils = require('cordova/utils'),
|
||||
exec = require('cordova/exec');
|
||||
|
||||
|
||||
var Keyboard = function() {
|
||||
};
|
||||
|
||||
Keyboard.hideKeyboardAccessoryBar = function(hide) {
|
||||
exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]);
|
||||
};
|
||||
|
||||
Keyboard.close = function() {
|
||||
exec(null, null, "Keyboard", "close", []);
|
||||
};
|
||||
|
||||
Keyboard.show = function() {
|
||||
console.warn('Showing keyboard not supported in iOS due to platform limitations.')
|
||||
console.warn('Instead, use input.focus(), and ensure that you have the following setting in your config.xml: \n');
|
||||
console.warn(' <preference name="KeyboardDisplayRequiresUserAction" value="false"/>\n');
|
||||
// exec(null, null, "Keyboard", "show", []);
|
||||
};
|
||||
|
||||
Keyboard.disableScroll = function(disable) {
|
||||
exec(null, null, "Keyboard", "disableScroll", [disable]);
|
||||
};
|
||||
|
||||
/*
|
||||
Keyboard.styleDark = function(dark) {
|
||||
exec(null, null, "Keyboard", "styleDark", [dark]);
|
||||
};
|
||||
*/
|
||||
|
||||
Keyboard.isVisible = false;
|
||||
|
||||
module.exports = Keyboard;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user