Update for focus system
This commit is contained in:
@@ -78,6 +78,7 @@ class URLBar: ReliefButton
|
||||
}), for: [ .editingDidBegin, .editingDidEnd ])
|
||||
textField.keyCommands = [
|
||||
UIKeyCommand(action: #selector(Self.downKeyPressed), input: UIKeyCommand.inputDownArrow)
|
||||
.prioritizeOverSystem()
|
||||
]
|
||||
addSubview(textField)
|
||||
|
||||
|
||||
@@ -12,4 +12,12 @@ extension UIKeyCommand {
|
||||
self.init(input: input, modifierFlags: modifiers, action: action)
|
||||
self.title = title
|
||||
}
|
||||
|
||||
public func prioritizeOverSystem() -> UIKeyCommand {
|
||||
if #available(iOS 15.0, *) {
|
||||
self.wantsPriorityOverSystemBehavior = true
|
||||
}
|
||||
|
||||
return self
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "1ADFF45B24C7DE53006DC7AE"
|
||||
BuildableName = "rossler\\attix.app"
|
||||
BuildableName = "rossler attix.app"
|
||||
BlueprintName = "App"
|
||||
ReferencedContainer = "container:SBrowser.xcodeproj">
|
||||
</BuildableReference>
|
||||
@@ -46,7 +46,7 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "1ADFF45B24C7DE53006DC7AE"
|
||||
BuildableName = "rossler\\attix.app"
|
||||
BuildableName = "rossler attix.app"
|
||||
BlueprintName = "App"
|
||||
ReferencedContainer = "container:SBrowser.xcodeproj">
|
||||
</BuildableReference>
|
||||
@@ -70,7 +70,7 @@
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "1ADFF45B24C7DE53006DC7AE"
|
||||
BuildableName = "rossler\\attix.app"
|
||||
BuildableName = "rossler attix.app"
|
||||
BlueprintName = "App"
|
||||
ReferencedContainer = "container:SBrowser.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
||||
Reference in New Issue
Block a user