Reconcile with 6.1.6-ios branch.

This commit is contained in:
Brent Simmons
2025-01-03 13:16:49 -08:00
parent 62ad4d6e3b
commit ed3cf35dbf
23 changed files with 303 additions and 439 deletions

View File

@@ -51,7 +51,6 @@ class KeyboardManager {
keyCommand.wantsPriorityOverSystemBehavior = true
return keyCommand
}
}
private extension KeyboardManager {
@@ -60,7 +59,7 @@ private extension KeyboardManager {
guard let input = createKeyCommandInput(keyEntry: keyEntry) else { return nil }
let modifiers = createKeyModifierFlags(keyEntry: keyEntry)
let action = keyEntry["action"] as! String
if let title = keyEntry["title"] as? String {
return KeyboardManager.createKeyCommand(title: title, action: action, input: input, modifiers: modifiers)
} else {
@@ -69,7 +68,7 @@ private extension KeyboardManager {
return keyCommand
}
}
static func createKeyCommandInput(keyEntry: [String: Any]) -> String? {
guard let key = keyEntry["key"] as? String else { return nil }