mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-26 18:27:41 +00:00
Merge pull request #4491 from keymanapp/fix/ios/get-started-kbd-search
fix(ios): tutorial's link to "Add a Keyboard" links directly to keyboard search
This commit is contained in:
commit
0d312166b7
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