@@ -11,6 +11,7 @@ Methods
1111- cordova.plugins.Keyboard.hideKeyboardAccessoryBar
1212- cordova.plugins.Keyboard.close
1313- cordova.plugins.Keyboard.disableScroll
14+ - cordova.plugins.Keyboard.show
1415
1516Properties
1617--------
@@ -20,7 +21,7 @@ Properties
2021Events
2122--------
2223
23- These events are fired on the window.
24+ These events are fired on the window.
2425
2526- native.keyboardshow
2627 * A number ` keyboardHeight ` is given on the event object, which is the pixel height of the keyboard.
@@ -62,7 +63,7 @@ Supported Platforms
6263
6364- iOS, Android
6465
65-
66+
6667Keyboard.disableScroll
6768=================
6869
@@ -76,22 +77,32 @@ Supported Platforms
7677
7778- iOS
7879
80+ Keyboard.show
81+ =================
82+
83+ Force keyboard to be shown on Android. This typically helps if autofocus on a text element does not pop up the keyboard automatically
84+
85+ cordova.plugins.Keyboard.show();
86+
87+ Supported Platforms
88+
89+ - Android
7990
8091native.keyboardshow
8192=================
8293
8394This event fires when the keyboard will be shown
8495
8596 window.addEventListener('native.keyboardshow', keyboardShowHandler);
86-
97+
8798 function keyboardShowHandler(e){
8899 alert('Keyboard height is: ' + e.keyboardHeight);
89100 }
90101
91102Properties
92103-----------
93104
94- keyboardHeight: the height of the keyboard in pixels
105+ keyboardHeight: the height of the keyboard in pixels
95106
96107
97108Supported Platforms
@@ -106,7 +117,7 @@ native.keyboardhide
106117This event fires when the keyboard will hide
107118
108119 window.addEventListener('native.keyboardhide', keyboardHideHandler);
109-
120+
110121 function keyboardHideHandler(e){
111122 alert('Goodnight, sweet prince');
112123 }
0 commit comments