Skip to content

Commit

Permalink
Fix iOS Keyboard type not changing immediately (#6905)
Browse files Browse the repository at this point in the history
* Fix iOS Keyboard type not changing immediately

* Generate MobiVM MetalANGLE backend

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
Berstanio and actions-user committed Jul 3, 2022
1 parent c52e126 commit 35e7b11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -460,9 +460,9 @@ public void setOnscreenKeyboardVisible (boolean visible, OnscreenKeyboardType ty
if (textfield == null) createDefaultTextField();
softkeyboardActive = visible;
if (visible) {
UIKeyboardType preferredInputType;
if (type == null) type = OnscreenKeyboardType.Default;
textfield.setKeyboardType(getIosInputType(type));
textfield.reloadInputViews();
textfield.becomeFirstResponder();
textfield.setDelegate(textDelegate);
} else {
Expand Down
Expand Up @@ -451,9 +451,9 @@ public void setOnscreenKeyboardVisible (boolean visible, OnscreenKeyboardType ty
if (textfield == null) createDefaultTextField();
softkeyboardActive = visible;
if (visible) {
UIKeyboardType preferredInputType;
if (type == null) type = OnscreenKeyboardType.Default;
textfield.setKeyboardType(getIosInputType(type));
textfield.reloadInputViews();
textfield.becomeFirstResponder();
textfield.setDelegate(textDelegate);
} else {
Expand Down

0 comments on commit 35e7b11

Please sign in to comment.