From e0db036f25770eb13bacfb9711d113687a09c283 Mon Sep 17 00:00:00 2001 From: Alex Angas Date: Thu, 8 Oct 2015 17:52:39 +1030 Subject: [PATCH] Corrected event target from document to window on Windows --- src/windows/KeyboardProxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; });