Add selected row expanding and collapsing keyboard shortcuts

This commit is contained in:
Maurice Parker
2019-09-05 16:04:07 -05:00
parent c9fd7d01d9
commit 953259f0d3
2 changed files with 16 additions and 0 deletions

View File

@@ -404,6 +404,20 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
}
}
@objc func expandSelectedRows(_ sender: Any?) {
if let indexPath = coordinator.currentFeedIndexPath {
coordinator.expand(indexPath)
self.applyChanges(animate: true)
}
}
@objc func collapseSelectedRows(_ sender: Any?) {
if let indexPath = coordinator.currentFeedIndexPath {
coordinator.collapse(indexPath)
self.applyChanges(animate: true)
}
}
// MARK: API
func updateFeedSelection() {