HotKey
HotKey copied to clipboard
Simple global shortcuts in macOS
When listening for a volume keypress (.volumeUp or .volumeDown) using ``` let hotKey = HotKey(key: .volumeUp, modifiers: []) hotKey.keyDownHandler = { print("Volume up pressed") } ``` the keyDownHandler is not...
Hey, I'm writing an OS X app where a user can create sets of hotkeys and then switch the sets so I need to be able to unregister 'non-active' Hotkeys....
When you register, e.g. Command + C , that is Copy , the callback is called but the copy stops working. Any way to preserve the system predefined and the...
Do you plan to support SwiftUI (or even extend the documentation, how to integrate into SwiftUI)?
Hey, first thanks for creating the library, I was just in the process of setting it up, so I'm just doing some basic test, but this doesn't seem to work:...
### Setup macOS: 11.0.1 HotKey: 0.1.3 Deployment Target: 10.15 XCode Version: 12.3 ### Issue I seem to be unable to capture the `fn` key with HotKey when looking at the...
I’m using a keyboard with a German layout (QWERTZ). The keys _Z_ and _Y_ are reversed in comparison to the US layout on it (QWERTY). When I set a KeyCombo...
To help aid hotkeys configurable by the user, it would be helpful to have a way of creating a HotKey (or KeyCombo) from a string such as `option+command+t`. I have...
Is it possible to listen for a double shift event?
Here's my code (I'm just making a test application) ```swift import Cocoa import HotKey class ViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() let hotkey = HotKey(keyCombo: KeyCombo(key: .p, modifiers:...