Remove unused references to AppNavigationKeyPressed.
This commit is contained in:
parent
2325e7edbc
commit
054c7fb409
|
@ -14,8 +14,6 @@ extension Notification.Name {
|
||||||
static let SidebarSelectionDidChange = Notification.Name("SidebarSelectionDidChangeNotification")
|
static let SidebarSelectionDidChange = Notification.Name("SidebarSelectionDidChangeNotification")
|
||||||
static let TimelineSelectionDidChange = Notification.Name("TimelineSelectionDidChangeNotification")
|
static let TimelineSelectionDidChange = Notification.Name("TimelineSelectionDidChangeNotification")
|
||||||
|
|
||||||
static let AppNavigationKeyPressed = Notification.Name("AppNavigationKeyPressedNotification")
|
|
||||||
|
|
||||||
static let UserDidAddFeed = Notification.Name("UserDidAddFeedNotification")
|
static let UserDidAddFeed = Notification.Name("UserDidAddFeedNotification")
|
||||||
|
|
||||||
// Sent by DetailViewController when mouse hovers over link in web view.
|
// Sent by DetailViewController when mouse hovers over link in web view.
|
||||||
|
|
|
@ -53,8 +53,6 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(applicationWillTerminate(_:)), name: NSApplication.willTerminateNotification, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(applicationWillTerminate(_:)), name: NSApplication.willTerminateNotification, object: nil)
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(appNavigationKeyPressed(_:)), name: .AppNavigationKeyPressed, object: nil)
|
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidBegin, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidBegin, object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidFinish, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshDidFinish, object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshProgressDidChange, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(refreshProgressDidChange(_:)), name: .AccountRefreshProgressDidChange, object: nil)
|
||||||
|
@ -87,23 +85,6 @@ class MainWindowController : NSWindowController, NSUserInterfaceValidations {
|
||||||
window?.saveFrame(usingName: windowAutosaveName)
|
window?.saveFrame(usingName: windowAutosaveName)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc func appNavigationKeyPressed(_ note: Notification) {
|
|
||||||
|
|
||||||
guard let navigationKey = note.userInfo?[UserInfoKey.navigationKeyPressed] as? Int else {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
guard let contentView = window?.contentView, let view = note.object as? NSView, view.isDescendant(of: contentView) else {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
if navigationKey == NSRightArrowFunctionKey {
|
|
||||||
handleRightArrowFunctionKey(in: view)
|
|
||||||
}
|
|
||||||
if navigationKey == NSLeftArrowFunctionKey {
|
|
||||||
handleLeftArrowFunctionKey(in: view)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@objc func refreshProgressDidChange(_ note: Notification) {
|
@objc func refreshProgressDidChange(_ note: Notification) {
|
||||||
|
|
||||||
CoalescingQueue.standard.add(self, #selector(makeToolbarValidate))
|
CoalescingQueue.standard.add(self, #selector(makeToolbarValidate))
|
||||||
|
|
Loading…
Reference in New Issue