Some main menu fixes

This commit is contained in:
James Magahern
2022-08-03 19:04:40 -07:00
parent 56ed848fe7
commit ace7917080
3 changed files with 33 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ extension UIKeyCommand {
UIKeyCommand(modifiers: [], input: "", title: "", action: #selector(_null))
}
public func isNull() -> Bool {
return action == #selector(_null)
}
convenience init(modifiers: UIKeyModifierFlags, input: String, title: String, action: Selector) {
self.init(input: input, modifierFlags: modifiers, action: action)
self.title = title