Skip to content

Commit

Permalink
re-enable keyboard shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Nov 6, 2023
1 parent d405e13 commit 467cba1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DuckDuckGo/MainViewController+KeyCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ extension MainViewController {
UIKeyCommand(title: "", action: #selector(keyboardEscape), input: UIKeyCommand.inputEscape, modifierFlags: [])
]

return [alwaysAvailable, browsingCommands, findInPageCommands, arrowKeys, other].flatMap { $0 }
let commands = [alwaysAvailable, browsingCommands, findInPageCommands, arrowKeys, other].flatMap { $0 }
if #available(iOS 15, *) {
commands.forEach {
$0.wantsPriorityOverSystemBehavior = true
}
}
return commands
}

@objc func keyboardMoveSelectionUp() {
Expand Down

0 comments on commit 467cba1

Please sign in to comment.