diff --git a/src/windows/KeyboardProxy.js b/src/windows/KeyboardProxy.js index c5f6fd0..f00174a 100644 --- a/src/windows/KeyboardProxy.js +++ b/src/windows/KeyboardProxy.js @@ -5,7 +5,7 @@ var inputPane = Windows.UI.ViewManagement.InputPane.getForCurrentView(); var keyboardScrollDisabled = false; inputPane.addEventListener('hiding', function() { - cordova.fireDocumentEvent('native.keyboardhide'); + cordova.fireWindowEvent('native.keyboardhide'); cordova.plugins.Keyboard.isVisible = false; }); @@ -14,7 +14,7 @@ inputPane.addEventListener('showing', function(e) { // this disables automatic scrolling of view contents to show focused control e.ensuredFocusedElementInView = true; } - cordova.fireDocumentEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height }); + cordova.fireWindowEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height }); cordova.plugins.Keyboard.isVisible = true; });