Skip to content

Commit

Permalink
- remove "Drag Item" accessibility custom action for "Quick Access" s…
Browse files Browse the repository at this point in the history
…earch suggestions (fixes finding in #1349)
  • Loading branch information
felix-schwarz committed Jun 10, 2024
1 parent 6677219 commit 867c333
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,12 @@ class AccountControllerSearchViewController: ClientItemViewController {

return suggestions
}

override func search(for viewController: SearchViewController, content: SearchViewController.Content?) {
// Disable dragging of items, so keyboard control does not include "Drag Item"
// in the accessibility actions invoked with Tab + Z for (Quick Access) suggestions
dragInteractionEnabled = (content?.type == .suggestion) ? false : true

super.search(for: viewController, content: content)
}
}

0 comments on commit 867c333

Please sign in to comment.