diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-08-31 23:07:20 +0200 |
| commit | 22721a013bdd10d5eb395ba18453585f5f3f1f7f (patch) | |
| tree | 5a920e31d6026ed5dc55265e5fd057febccc50e3 /StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js | |
| parent | d22d51a1ae49680015326857360eb699f31efced (diff) | |
rebuild the ios platform and the plugins
Diffstat (limited to 'StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js')
| -rw-r--r-- | StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js b/StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js deleted file mode 100644 index 2ce74e9f..00000000 --- a/StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js +++ /dev/null @@ -1,37 +0,0 @@ - -/*global Windows, WinJS, cordova, module, require*/ - -var inputPane = Windows.UI.ViewManagement.InputPane.getForCurrentView(); -var keyboardScrollDisabled = false; - -inputPane.addEventListener('hiding', function() { - cordova.fireWindowEvent('native.keyboardhide'); - cordova.plugins.Keyboard.isVisible = false; -}); - -inputPane.addEventListener('showing', function(e) { - if (keyboardScrollDisabled) { - // this disables automatic scrolling of view contents to show focused control - e.ensuredFocusedElementInView = true; - } - cordova.fireWindowEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height }); - cordova.plugins.Keyboard.isVisible = true; -}); - -module.exports.disableScroll = function (disable) { - keyboardScrollDisabled = disable; -}; - -module.exports.show = function () { - if (typeof inputPane.tryShow === 'function') { - inputPane.tryShow(); - } -}; - -module.exports.close = function () { - if (typeof inputPane.tryShow === 'function') { - inputPane.tryHide(); - } -}; - -require("cordova/exec/proxy").add("Keyboard", module.exports); |
