Licardo
7535969a90
Add localization support ( #27 )
...
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-03-22 17:44:47 +07:00
Sindre Sorhus
f09de800a4
0.7.1
2021-02-21 19:15:12 +07:00
Sindre Sorhus
300be2ec2b
Minor tweaks
2021-02-21 19:14:36 +07:00
hank121314
1d53dae131
Fix `RecorderCocoa` when embedded in certain views ( #43 )
2021-02-21 19:13:03 +07:00
Sindre Sorhus
f57a1e998d
0.7.0
2021-01-31 17:07:02 +07:00
Pedro José Pereira Vieito
428ee65cde
Support for setting NSMenuItem shortcut with nameless shortcut ( #38 )
...
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-01-31 17:03:19 +07:00
Sindre Sorhus
f61722570a
Rename `master` branch to `main`
2021-01-24 14:05:57 +07:00
Pedro José Pereira Vieito
b2dc69389d
Unregisters Carbon hot keys with `KeyboardShortcuts.removeAllHandlers()` ( #37 )
2021-01-18 14:56:18 +07:00
Sindre Sorhus
6d0efcd1fb
0.6.1
2021-01-11 18:27:46 +07:00
Pedro José Pereira Vieito
d8a9321c4a
Add method to remove all handlers ( #36 )
...
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2021-01-11 18:24:13 +07:00
Sindre Sorhus
02a18776d9
Add FAQ item
...
Fixes #34
2020-12-16 22:08:58 +07:00
Sindre Sorhus
71ddac80e3
Document default keyboard shortcut tip ( #32 )
...
Fixes #31
2020-11-29 08:03:19 +07:00
Sindre Sorhus
af553c76a0
Minor tweaks
2020-11-06 12:26:34 +01:00
Sindre Sorhus
81e72f4787
0.6.0
2020-10-09 17:18:02 +02:00
Sindre Sorhus
8b99c3c9db
Clean up #26
2020-10-09 17:16:31 +02:00
hank121314
a6c093057d
`Recorder` should allow changing the `name` parameter ( #26 )
...
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-10-09 16:47:31 +02:00
Sindre Sorhus
59f2f47241
Upgrade to Swift 5.3
2020-09-17 00:14:13 +02:00
Sindre Sorhus
d97e5e9c62
0.5.0
2020-08-28 21:02:08 +02:00
Sindre Sorhus
43d7fe58b3
Add `.setShortcut()`, `.getShortcut()`, and `.reset()` methods ( #24 )
2020-08-28 20:19:32 +02:00
Sindre Sorhus
729002c51a
Pause keyboard shortcut events while a recorder input is active ( #25 )
...
Fixes #20
2020-08-10 22:15:41 +02:00
Sindre Sorhus
6b702c6f53
Document how to dynamically register keyboard shortcuts
...
#22
2020-08-10 12:18:50 +02:00
Sindre Sorhus
61841e4dd5
0.4.0
2020-07-25 08:21:58 +02:00
Sindre Sorhus
3c5fcbfb92
Fix building on Apple Silicon
2020-07-25 08:19:27 +02:00
Sindre Sorhus
0a00f7ac79
Convert `Key` from an enum to a struct
...
There was really no benefit to it being an enum.
2020-06-27 20:09:53 +08:00
Sindre Sorhus
a345f5f241
Remove `Name` typealias in `KeyboardShortcuts.Name`
...
I realized you can just use `Self` instead 👌
2020-06-25 03:08:15 +08:00
Sindre Sorhus
c7094b0b7a
0.3.0
2020-06-22 12:47:40 +08:00
Garth Poitras
8271537707
Add ability to set default shortcut ( #13 )
...
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-06-22 12:02:58 +08:00
Sindre Sorhus
e33b6cb1ea
Minor tweaks
2020-06-21 20:17:40 +08:00
Garth Poitras
5cb615fbca
Add optional change callback to `Recorder` and `RecorderCocoa` ( #12 )
...
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-06-17 16:14:49 +08:00
Sindre Sorhus
e3784b1264
0.2.2
2020-06-08 20:29:53 +08:00
ywolff
56778e11a7
Unregister shortcut before setting a new one ( #10 )
2020-06-08 20:27:36 +08:00
Sindre Sorhus
139ac5d255
Minor tweaks
2020-06-07 15:09:28 +08:00
Sindre Sorhus
d07dee7479
0.2.1
2020-06-05 23:21:06 +08:00
Sindre Sorhus
eb68608e7f
Fix `.setShortcut()` crashing when called from a `NSBackgroundActivityScheduler` task ( #9 )
2020-06-05 23:18:13 +08:00
Sindre Sorhus
edae6435d9
Minor tweaks
2020-06-04 02:48:29 +08:00
Sindre Sorhus
78d07db847
Don’t use `class` for namespacing
2020-05-21 15:38:46 +08:00
Sindre Sorhus
498fcd6cc1
0.2.0
2020-05-19 18:53:46 +08:00
Sindre Sorhus
9c0427adcb
Add method to show a keyboard shortcut in `NSMenuItem` ( #5 )
2020-05-19 18:52:23 +08:00
Sindre Sorhus
0419330a3f
Fix SwiftLint workflow
2020-05-17 02:43:27 +08:00
Sindre Sorhus
49b017b245
0.1.1
2020-05-10 02:39:33 +08:00
Sindre Sorhus
8e7291f441
Cancel recording when the user clicks outside the input
...
Fixes #4
2020-05-10 02:39:33 +08:00
Sindre Sorhus
4dac019386
Fix `Key`
...
I misunderstood how `NSEvent.SpecialKey` worked. I incorrectly assumed its `rawValue` would be a key code, but it’s not. For example, the `rawValue` of `NSEvent.SpecialKey.tab` is `9`, which is also the key code for the character `v`. In my defense, that API is not documented, as always…
2020-05-10 02:39:32 +08:00
Sindre Sorhus
a1550ae2c7
0.1.0
2020-05-08 00:14:57 +08:00
Sindre Sorhus
affae1cd71
Init
2020-05-07 23:06:02 +08:00