Skip to content

Commit

Permalink
⏪️ Revert 5870564
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Sep 17, 2023
1 parent 6a102ca commit a07dc4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions Loop/LoopApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
PermissionsManager.Accessibility.requestAccess()

iconManager.refreshCurrentAppIcon()
loopManager.startObservingKeys()

if Defaults[.windowSnapping] {
SnappingManager.shared.addObservers()
Expand Down
4 changes: 0 additions & 4 deletions Loop/Managers/LoopManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ class LoopManager {
private var triggerDelayTimer: DispatchSourceTimer?
private var lastTriggerKeyClick: Date = Date.now

init() {
self.startObservingKeys()
}

func startObservingKeys() {
self.flagsChangedEventMonitor = NSEventMonitor(scope: .global, eventMask: .flagsChanged) { event in
self.handleLoopKeypress(event)
Expand Down

0 comments on commit a07dc4f

Please sign in to comment.