Add delete feed keyboard shortcut

This commit is contained in:
Maurice Parker
2019-09-05 15:54:58 -05:00
parent 9a52834b7a
commit c9fd7d01d9
2 changed files with 8 additions and 2 deletions

View File

@@ -10,7 +10,7 @@
</dict>
<dict>
<key>title</key>
<string>Collapse Selected Rows</string>
<string>Collapse Selected Row</string>
<key>key</key>
<string>,</string>
<key>action</key>
@@ -18,7 +18,7 @@
</dict>
<dict>
<key>title</key>
<string>Expand Selected Rows</string>
<string>Expand Selected Row</string>
<key>key</key>
<string>.</string>
<key>action</key>

View File

@@ -398,6 +398,12 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
coordinator.showBrowserForCurrentFeed()
}
@objc override func delete(_ sender: Any?) {
if let indexPath = coordinator.currentFeedIndexPath {
delete(indexPath: indexPath)
}
}
// MARK: API
func updateFeedSelection() {