⌨️ Add user-customizable global keyboard shortcuts (hotkeys) to your macOS app in minutes
MIT License
Bot releases are hidden (Show)
SwiftUI.View#focused()
https://github.com/sindresorhus/KeyboardShortcuts/commit/387756ce61cd5c7a27a6e2f5b611db593d60c59e
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.6.0...v1.7.0
.on()
method. This method has been renamed to .events()
to better reflect Apple's naming of async stream APIs. An automatic "fix-it" is included. https://github.com/sindresorhus/KeyboardShortcuts/commit/8a2cc9130b0eec6e1dae0a9a405a17741437caa5
View#onKeyboardShortcut()
method to make it nicer to listen to keyboard shortcut events in SwiftUI. https://github.com/sindresorhus/KeyboardShortcuts/commit/8a2cc9130b0eec6e1dae0a9a405a17741437caa5#diff-02bed2a7d5a7f8e2e4644c05f55d36c4c037107a949ef792d8405460f4d0ee3cR1-R38
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.5.0...v1.6.0
KeyboardShortcuts.Recorder
https://github.com/sindresorhus/KeyboardShortcuts/commit/7e251f3a15234fb126f969040ec407ad45701efd
HStack
yourself.AsyncStream
-based key listener method https://github.com/sindresorhus/KeyboardShortcuts/commit/0dcedd56994d871f243f3d9c76590bfd9f8aba69
onKeyUp()
is that you can control its lifecycle. When you cancel the stream, the listening ends.https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.4.0...v1.5.0
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.3.0...v1.4.0
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.2.1...v1.3.0
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.2.0...v1.2.1
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.1.0...v1.2.0
https://github.com/sindresorhus/KeyboardShortcuts/compare/v1.0.0...v1.1.0
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.7.1...v1.0.0
RecorderCocoa
when embedded in certain views (#43). https://github.com/sindresorhus/KeyboardShortcuts/commit/1d53dae13115e9fa728caca761226a0d9db50664
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.7.0...v0.7.1
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.6.1...v0.7.0
Recorder
should allow changing the name
parameter https://github.com/sindresorhus/KeyboardShortcuts/commit/a6c093057d7172d52db5fe1e0552066f0f1285bb (#26)https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.5.0...v0.6.0
.setShortcut()
, .getShortcut()
, and .reset()
methods https://github.com/sindresorhus/KeyboardShortcuts/commit/43d7fe58b3a90cfd1a085ff21daa5cbf8abed5af
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.4.0...v0.5.0
Name
typealias in KeyboardShortcuts.Name
https://github.com/sindresorhus/KeyboardShortcuts/commit/a345f5f2412fbff3805be4a5c007fa7f8e7da7afSelf
instead.
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.3.0...v0.4.0
Recorder
and RecorderCocoa
(#12) https://github.com/sindresorhus/KeyboardShortcuts/commit/5cb615fbca59561817664f33abb45bb509217c1d
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.2.2...v0.3.0
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.2.1...v0.2.2
.setShortcut()
crashing when called from a NSBackgroundActivityScheduler
task https://github.com/sindresorhus/KeyboardShortcuts/commit/eb68608e7f2a98cc4b64f3361de61c1991d9a842https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.2.0...v0.2.1
NSMenuItem
(#5) https://github.com/sindresorhus/KeyboardShortcuts/commit/9c0427adcb3762c4b0e4460296ec73955f885875
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.1.1...v0.2.0
Key
type https://github.com/sindresorhus/KeyboardShortcuts/commit/4dac01938699278a3dedfa518e50522809b4eb24
https://github.com/sindresorhus/KeyboardShortcuts/compare/v0.1.0...v0.1.1