diff --git a/App/Titlebar and URL Bar/URLBar.swift b/App/Titlebar and URL Bar/URLBar.swift
index 59500a3..80e837e 100644
--- a/App/Titlebar and URL Bar/URLBar.swift
+++ b/App/Titlebar and URL Bar/URLBar.swift
@@ -78,6 +78,7 @@ class URLBar: ReliefButton
}), for: [ .editingDidBegin, .editingDidEnd ])
textField.keyCommands = [
UIKeyCommand(action: #selector(Self.downKeyPressed), input: UIKeyCommand.inputDownArrow)
+ .prioritizeOverSystem()
]
addSubview(textField)
diff --git a/App/Utilities/UIKeyCommand+ConvInit.swift b/App/Utilities/UIKeyCommand+ConvInit.swift
index 77cf58f..ebd61fc 100644
--- a/App/Utilities/UIKeyCommand+ConvInit.swift
+++ b/App/Utilities/UIKeyCommand+ConvInit.swift
@@ -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
+ }
}
diff --git a/SBrowser.xcodeproj/xcshareddata/xcschemes/App.xcscheme b/SBrowser.xcodeproj/xcshareddata/xcschemes/App.xcscheme
index 5a4b271..9c37fa1 100644
--- a/SBrowser.xcodeproj/xcshareddata/xcschemes/App.xcscheme
+++ b/SBrowser.xcodeproj/xcshareddata/xcschemes/App.xcscheme
@@ -15,7 +15,7 @@
@@ -46,7 +46,7 @@
@@ -70,7 +70,7 @@