Skip to content
This repository was archived by the owner on Apr 2, 2018. It is now read-only.

Commit e0db036

Browse files
committed
Corrected event target from document to window on Windows
1 parent 5c22ab1 commit e0db036

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/windows/KeyboardProxy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var inputPane = Windows.UI.ViewManagement.InputPane.getForCurrentView();
55
var keyboardScrollDisabled = false;
66

77
inputPane.addEventListener('hiding', function() {
8-
cordova.fireDocumentEvent('native.keyboardhide');
8+
cordova.fireWindowEvent('native.keyboardhide');
99
cordova.plugins.Keyboard.isVisible = false;
1010
});
1111

@@ -14,7 +14,7 @@ inputPane.addEventListener('showing', function(e) {
1414
// this disables automatic scrolling of view contents to show focused control
1515
e.ensuredFocusedElementInView = true;
1616
}
17-
cordova.fireDocumentEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height });
17+
cordova.fireWindowEvent('native.keyboardshow', { keyboardHeight: e.occludedRect.height });
1818
cordova.plugins.Keyboard.isVisible = true;
1919
});
2020

0 commit comments

Comments
 (0)