Minor tweaks
This commit is contained in:
parent
81e72f4787
commit
af553c76a0
|
@ -2,7 +2,7 @@ import Cocoa
|
|||
import SwiftUI
|
||||
import KeyboardShortcuts
|
||||
|
||||
@NSApplicationMain
|
||||
@main
|
||||
final class AppDelegate: NSObject, NSApplicationDelegate {
|
||||
private var window: NSWindow!
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue