From ac3947b16438141df4b9f9d603503751a07c6111 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 20 Dec 2017 20:51:17 -0800 Subject: [PATCH] Continue progress on keyboard shortcuts. --- .../MainWindow/Keyboard/GlobalKeyboardShortcuts.plist | 8 +++++++- Evergreen/MainWindow/MainWindowController.swift | 6 ++++++ .../Resources/KeyboardShortcuts/KeyboardShortcuts.html | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Evergreen/MainWindow/Keyboard/GlobalKeyboardShortcuts.plist b/Evergreen/MainWindow/Keyboard/GlobalKeyboardShortcuts.plist index 8c17c4d1c..4611d1fc0 100644 --- a/Evergreen/MainWindow/Keyboard/GlobalKeyboardShortcuts.plist +++ b/Evergreen/MainWindow/Keyboard/GlobalKeyboardShortcuts.plist @@ -30,7 +30,7 @@ key - [downarrow] + + shiftModifier action @@ -54,6 +54,12 @@ action markUnreadAndGoToNextUnread: + + key + l + action + markReadAndGoToNextUnread: + key u diff --git a/Evergreen/MainWindow/MainWindowController.swift b/Evergreen/MainWindow/MainWindowController.swift index 512392f86..c0397f3a7 100644 --- a/Evergreen/MainWindow/MainWindowController.swift +++ b/Evergreen/MainWindow/MainWindowController.swift @@ -192,6 +192,12 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations { nextUnread(sender) } + @IBAction func markReadAndGoToNextUnread(_ sender: Any?) { + + markUnread(sender) + nextUnread(sender) + } + @IBAction func toggleSidebar(_ sender: Any?) { splitViewController!.toggleSidebar(sender) diff --git a/Evergreen/Resources/KeyboardShortcuts/KeyboardShortcuts.html b/Evergreen/Resources/KeyboardShortcuts/KeyboardShortcuts.html index 19f10971b..4f404e820 100644 --- a/Evergreen/Resources/KeyboardShortcuts/KeyboardShortcuts.html +++ b/Evergreen/Resources/KeyboardShortcuts/KeyboardShortcuts.html @@ -39,7 +39,7 @@  
Everywhere… Scroll or go to next unreadspace bar -Go to next unread+ or shift-downArrow +Go to next unread+ Mark as readr Mark all as readk Mark all as read, go to next unreadl (lowercase L)