diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-10-26 04:11:12 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-10-26 04:11:12 +0200 |
| commit | 2dc213bc3e581fe324d2a2ede320f9a5d5db68c0 (patch) | |
| tree | 388afa203b7c310330d3749a6ae93acf9f23dab0 /StoneIsland/platforms/android/assets/www/plugins/ionic-plugin-keyboard | |
| parent | 70f3af46c5071866eac85b39c59cda6ebdd09ef7 (diff) | |
deploy 0.9.2
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/plugins/ionic-plugin-keyboard')
| -rw-r--r-- | StoneIsland/platforms/android/assets/www/plugins/ionic-plugin-keyboard/www/android/keyboard.js | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/StoneIsland/platforms/android/assets/www/plugins/ionic-plugin-keyboard/www/android/keyboard.js b/StoneIsland/platforms/android/assets/www/plugins/ionic-plugin-keyboard/www/android/keyboard.js deleted file mode 100644 index cce2e5be..00000000 --- a/StoneIsland/platforms/android/assets/www/plugins/ionic-plugin-keyboard/www/android/keyboard.js +++ /dev/null @@ -1,62 +0,0 @@ -cordova.define("ionic-plugin-keyboard.keyboard", function(require, exports, module) { -var argscheck = require('cordova/argscheck'), - utils = require('cordova/utils'), - exec = require('cordova/exec'), - channel = require('cordova/channel'); - - -var Keyboard = function() { -}; - -Keyboard.hideKeyboardAccessoryBar = function(hide) { - exec(null, null, "Keyboard", "hideKeyboardAccessoryBar", [hide]); -}; - -Keyboard.close = function() { - exec(null, null, "Keyboard", "close", []); -}; - -Keyboard.show = function() { - 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; - -channel.onCordovaReady.subscribe(function() { - exec(success, null, 'Keyboard', 'init', []); - - function success(msg) { - var action = msg.charAt(0); - if ( action === 'S' ) { - var keyboardHeight = msg.substr(1); - cordova.plugins.Keyboard.isVisible = true; - cordova.fireWindowEvent('native.keyboardshow', { 'keyboardHeight': + keyboardHeight }); - - //deprecated - cordova.fireWindowEvent('native.showkeyboard', { 'keyboardHeight': + keyboardHeight }); - } else if ( action === 'H' ) { - cordova.plugins.Keyboard.isVisible = false; - cordova.fireWindowEvent('native.keyboardhide'); - - //deprecated - cordova.fireWindowEvent('native.hidekeyboard'); - } - } -}); - -module.exports = Keyboard; - - - - -}); |
