Releases: sindresorhus/KeyboardShortcuts
Releases · sindresorhus/KeyboardShortcuts
v1.9.1
- Remove the UserDefaults key for a shortcut completely if the
default
parameter onName
is not used
v1.9.0
- Fix using the recorder in a popover
- Allow clicking controls outside the recorder input directly when the recorder is focused
- Update more localizations for macOS 13
- Add French and Dutch localization
Xcode 14.1 or later is required
v1.8.0
- Improve compatibility with macOS 13
- Drop support for macOS 10.11 and 10.12 (Xcode doesn't support these anymore)
- Fix text field getting initial focus
Xcode 14.1 is now required
v1.7.2
- Fix shortcut bug with Shift key
v1.7.1
- Fix duplication checking with menu items for shortcuts with a Shift modifier
v1.7.0
v1.6.0
- The previous version introduced a
.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. 8a2cc91 - Added
View#onKeyboardShortcut()
method to make it nicer to listen to keyboard shortcut events in SwiftUI. 8a2cc91#diff-02bed2a7d5a7f8e2e4644c05f55d36c4c037107a949ef792d8405460f4d0ee3cR1-R38 - Update localization zh-TW to align with Apple's ee60fcf
v1.5.0
- Add support for specifying a label in
KeyboardShortcuts.Recorder
7e251f3- This means you no longer need to wrap it in a
HStack
yourself.
- This means you no longer need to wrap it in a
- Add modern
AsyncStream
-based key listener method 0dcedd5- The benefit of this one over
onKeyUp()
is that you can control its lifecycle. When you cancel the stream, the listening ends.
- The benefit of this one over
- Add Czech localization 954285d
v1.4.0
- Add Hungarian localization
- Add Spanish localization
v1.3.0
- Add Chinese (Traditional, Taiwan) localization 32aef04