mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 22:37:43 +00:00
fix(ios): get started 'add kbd' links to keyboard search
This commit is contained in:
parent
380832cda8
commit
7ec7f6e72e
2 changed files with 10 additions and 3 deletions
|
|
@ -439,8 +439,8 @@ public class InstalledLanguagesViewController: UITableViewController, UIAlertVie
|
|||
}
|
||||
|
||||
extension InstalledLanguagesViewController {
|
||||
|
||||
@objc func addClicked(_ sender: Any) {
|
||||
|
||||
public func launchKeyboardSearch() {
|
||||
let keyboardSearchVC = KeyboardSearchViewController(keyboardSelectionBlock: KeyboardSearchViewController.defaultDownloadClosure() { result in
|
||||
switch result {
|
||||
case .cancelled:
|
||||
|
|
@ -459,5 +459,9 @@ extension InstalledLanguagesViewController {
|
|||
|
||||
navigationController!.pushViewController(keyboardSearchVC, animated: true)
|
||||
}
|
||||
|
||||
@objc func addClicked(_ sender: Any) {
|
||||
launchKeyboardSearch()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -536,7 +536,10 @@ class MainViewController: UIViewController, TextViewDelegate, UIActionSheetDeleg
|
|||
let installedLanguagesVC = InstalledLanguagesViewController()
|
||||
nc.pushViewController(installedLanguagesVC, animated: true)
|
||||
|
||||
self.present(nc, animated: true)
|
||||
self.present(nc, animated: true) {
|
||||
// Requires a host NavigationViewController, hence calling it afterward.
|
||||
installedLanguagesVC.launchKeyboardSearch()
|
||||
}
|
||||
}
|
||||
|
||||
@objc func actionButtonClick(_ sender: Any) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue