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