Skip to content

Commit e156f18

Browse files
committed
Added ability to block the VKB through code
This can be accomplished by defining the property: Display.getInstance().setProperty("showVkb", "false"); This will block the VKB from showing. It can be se to null to disable this explicit behavior when no longer needed. Fixed #3774
1 parent 8bd73ce commit e156f18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Ports/Android/src/com/codename1/impl/android/InPlaceEditView.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,9 @@ public void run() {
601601
* @param show Show the keyboard if true, hide it otherwise
602602
*/
603603
private void showVirtualKeyboard(boolean show) {
604+
show = Boolean.parseBoolean(Display.getInstance().getProperty("showVkb", "" + show));
604605
Log.i(TAG, "showVirtualKeyboard show=" + show);
605-
606+
606607
boolean result = false;
607608
if (show) {
608609
// If we're in landscape, Android will not show the soft

0 commit comments

Comments
 (0)