Continue progress on keyboard shortcuts.

This commit is contained in:
Brent Simmons 2017-12-20 20:51:17 -08:00
parent 5657f673f1
commit ac3947b164
3 changed files with 14 additions and 2 deletions

View File

@ -30,7 +30,7 @@
</dict> </dict>
<dict> <dict>
<key>key</key> <key>key</key>
<string>[downarrow]</string> <string>+</string>
<key>shiftModifier</key> <key>shiftModifier</key>
<true/> <true/>
<key>action</key> <key>action</key>
@ -54,6 +54,12 @@
<key>action</key> <key>action</key>
<string>markUnreadAndGoToNextUnread:</string> <string>markUnreadAndGoToNextUnread:</string>
</dict> </dict>
<dict>
<key>key</key>
<string>l</string>
<key>action</key>
<string>markReadAndGoToNextUnread:</string>
</dict>
<dict> <dict>
<key>key</key> <key>key</key>
<string>u</string> <string>u</string>

View File

@ -192,6 +192,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
nextUnread(sender) nextUnread(sender)
} }
@IBAction func markReadAndGoToNextUnread(_ sender: Any?) {
markUnread(sender)
nextUnread(sender)
}
@IBAction func toggleSidebar(_ sender: Any?) { @IBAction func toggleSidebar(_ sender: Any?) {
splitViewController!.toggleSidebar(sender) splitViewController!.toggleSidebar(sender)

View File

@ -39,7 +39,7 @@
<tr><td colspan="2">&nbsp;<br /></td></tr> <tr><td colspan="2">&nbsp;<br /></td></tr>
<tr class="tableTitleRow"><td colspan="2">Everywhere…</td></tr> <tr class="tableTitleRow"><td colspan="2">Everywhere…</td></tr>
<tr class="backgroundColorRow"><td>Scroll or go to next unread</td><td>space bar</td></tr> <tr class="backgroundColorRow"><td>Scroll or go to next unread</td><td>space bar</td></tr>
<tr><td>Go to next unread</td><td>+ or shift-downArrow</td></tr> <tr><td>Go to next unread</td><td>+</td></tr>
<tr class="backgroundColorRow"><td>Mark as read</td><td>r</td></tr> <tr class="backgroundColorRow"><td>Mark as read</td><td>r</td></tr>
<tr><td>Mark all as read</td><td>k</td></tr> <tr><td>Mark all as read</td><td>k</td></tr>
<tr class="backgroundColorRow"><td>Mark all as read, go to next unread</td><td>l (lowercase L)</td></tr> <tr class="backgroundColorRow"><td>Mark all as read, go to next unread</td><td>l (lowercase L)</td></tr>