Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 6, 2020
1 parent 81e72f4 commit af553c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion KeyboardShortcutsExample/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Cocoa
import SwiftUI
import KeyboardShortcuts

@NSApplicationMain
@main
final class AppDelegate: NSObject, NSApplicationDelegate {
private var window: NSWindow!

Expand Down
4 changes: 2 additions & 2 deletions Sources/KeyboardShortcuts/KeyboardShortcuts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public enum KeyboardShortcuts {
import Cocoa
import KeyboardShortcuts

@NSApplicationMain
@main
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
KeyboardShortcuts.onKeyDown(for: .toggleUnicornMode) { [self] in
Expand Down Expand Up @@ -248,7 +248,7 @@ public enum KeyboardShortcuts {
import Cocoa
import KeyboardShortcuts

@NSApplicationMain
@main
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
KeyboardShortcuts.onKeyUp(for: .toggleUnicornMode) { [self] in
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Add a listener for when the user presses their chosen keyboard shortcut.
import Cocoa
import KeyboardShortcuts

@NSApplicationMain
@main
final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationDidFinishLaunching(_ notification: Notification) {
KeyboardShortcuts.onKeyUp(for: .toggleUnicornMode) { [self] in
Expand Down

0 comments on commit af553c7

Please sign in to comment.