Skip to content

Commit

Permalink
re-enable keyboard shortcuts (#2132)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/414709148257752/1205886244765299/f
Tech Design URL:
CC:

Description:

Fix bug preventing keyboard shortcuts working correctly.
  • Loading branch information
brindy authored Nov 7, 2023
1 parent 910a4f8 commit 81e555e
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 81e555e

Please sign in to comment.