Skip to content

Commit

Permalink
Merge pull request #10362 from keymanapp/fix/ios/kbd-multi-slide-in
Browse files Browse the repository at this point in the history
fix(ios): multiple keyboard slide-in animations on app start
  • Loading branch information
jahorton authored Jan 19, 2024
2 parents b56c71d + f759ece commit 4cbe34f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 1 addition & 5 deletions ios/engine/KMEI/KeymanEngine/Classes/TextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ public class TextField: UITextField, KeymanResponder {
font = UIFont.systemFont(ofSize: fontSize)
}

if isFirstResponder {
resignFirstResponder()
becomeFirstResponder()
}
log.debug("TextField \(self.hashValue) setFont: \(font?.familyName ?? "nil")")
}

Expand Down Expand Up @@ -179,7 +175,7 @@ extension KeymanResponder where Self: TextField {
resignFirstResponder()
Manager.shared.inputViewController.endEditing(true)
}

public func summonKeyboard() {
becomeFirstResponder()
}
Expand Down
5 changes: 0 additions & 5 deletions ios/engine/KMEI/KeymanEngine/Classes/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,6 @@ public class TextView: UITextView, KeymanResponder {
font = UIFont.systemFont(ofSize: fontSize)
}

if isFirstResponder {
resignFirstResponder()
becomeFirstResponder()
}

log.debug("TextView: \(self.hashValue) setFont: \(font?.familyName ?? "nil")")
}

Expand Down

0 comments on commit 4cbe34f

Please sign in to comment.