From b587279450ca70f66fed0b7206db6c801034fb77 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Thu, 25 Jul 2024 01:07:17 +0800 Subject: [PATCH] update --- .../ViewControllers/CommandManagerViewController.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Limelight/ViewControllers/CommandManagerViewController.swift b/Limelight/ViewControllers/CommandManagerViewController.swift index 419a4707..32074324 100644 --- a/Limelight/ViewControllers/CommandManagerViewController.swift +++ b/Limelight/ViewControllers/CommandManagerViewController.swift @@ -152,7 +152,15 @@ import UIKit let alert = UIAlertController(title: "New Command", message: "Enter a new command and alias", preferredStyle: .alert) alert.addTextField { $0.placeholder = "Command" } alert.addTextField { $0.placeholder = "Alias" } - + alert.textFields?[0].keyboardType = .asciiCapable + alert.textFields?[0].autocorrectionType = .no + alert.textFields?[0].spellCheckingType = .no + alert.textFields?[1].keyboardType = .asciiCapable + alert.textFields?[1].autocorrectionType = .no + alert.textFields?[1].spellCheckingType = .no + + + let submitAction = UIAlertAction(title: "Add", style: .default) { [unowned alert] _ in let keyboardCmdString = alert.textFields?[0].text ?? "" let alias = alert.textFields?[1].text ?? keyboardCmdString