From 22721a013bdd10d5eb395ba18453585f5f3f1f7f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 31 Aug 2020 23:07:20 +0200 Subject: rebuild the ios platform and the plugins --- .../src/windows/KeyboardProxy.js | 37 ---------------------- 1 file changed, 37 deletions(-) delete mode 100644 StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js (limited to 'StoneIsland/plugins/ionic-plugin-keyboard/src/windows/KeyboardProxy.js') 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); -- cgit v1.2.3-70-g09d2