diff --git a/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java b/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java index 3f933005..31ccf8a9 100755 --- a/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java +++ b/framework/src/org/apache/cordova/LinearLayoutSoftKeyboardDetect.java @@ -87,13 +87,13 @@ public class LinearLayoutSoftKeyboardDetect extends LinearLayout { // gone away. else if (height > oldHeight) { if(app != null) - app.sendJavascript("Cordova.fireDocumentEvent('hidekeyboard');"); + app.sendJavascript("require('cordova').fireDocumentEvent('hidekeyboard');"); } // If the height as gotten smaller then we will assume the soft keyboard has // been displayed. else if (height < oldHeight) { if(app != null) - app.sendJavascript("Cordova.fireDocumentEvent('showkeyboard');"); + app.sendJavascript("require('cordova').fireDocumentEvent('showkeyboard');"); } // Update the old height for the next event