Skip to content

Commit

Permalink
Added ability to block the VKB through code
Browse files Browse the repository at this point in the history
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
  • Loading branch information
shai-almog committed Dec 28, 2023
1 parent 8bd73ce commit e156f18
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,9 @@ public void run() {
* @param show Show the keyboard if true, hide it otherwise
*/
private void showVirtualKeyboard(boolean show) {
show = Boolean.parseBoolean(Display.getInstance().getProperty("showVkb", "" + show));
Log.i(TAG, "showVirtualKeyboard show=" + show);

boolean result = false;
if (show) {
// If we're in landscape, Android will not show the soft
Expand Down

0 comments on commit e156f18

Please sign in to comment.