d706220(#165 by @SergioRibera) Increased MSRV to1.77.5c3d182(#178 by @amrbashir) On Windows, sleep 50ms in the release-detection loop to avoid burning a CPU core for the whole hold duration (e.g. push-to-talk).23b71e1(#170 by @PiasekDev) Add X11 keysym mappings for F13-F24.
a25c485(#120 by @FabianLars) Updateobjc2to0.6. This raises the MSRV to 1.71 which is now also set inrust-version.
ddf5515(#112 by @amrbashir) Support usingPauseorPauseBreakkey on Windows and Linux.
2c7397b(#106 by @FabianLars) Fixed an issue causing compilation to fail for 32-bit targets.
8b13a61RemovedSyncandSendimplementation forGlobalHotKeyManager8b13a61Updatewindows-syscrate to0.59
c750004(#92 by @IAmJSD) Fix a panic when parsingHotKeyfrom a string and return an error instead, if the hotkey string consists of only modifiers and doesn't contain a key.
e9d263cFix parsing ofMEDIATRACKPREVandMEDIATRACKPREVIOUSkeys.
a468ede(#75) Addserdefeature flag and implementDeserializeandSerializeforGlobalHotKeyEvent,HotKeyStateandHotKeytypes.a468ede(#75) AddHotKey::into_stringmethod and implementDisplayforHotKey.
c530be0(#71) Support registering media play/pause/stop/next/prev keys.24f41b0(#73) Always service all pending events to avoid a queue of events from building up.
-
7d99bd7(#61) Refactored the errors when parsing accelerator from string:- Added
HotKeyParseErrorerror enum. - Removed
Error::UnrecognizedHotKeyCodeenum variant - Removed
Error::EmptyHotKeyTokenenum variant - Removed
Error::UnexpectedHotKeyFormatenum variant - Changed
Error::HotKeyParseErrorinner value fromStringto the newly addedHotKeyParseErrorenum.
- Added
-
7d99bd7(#61) Avoid panicing when parsing an invalidHotKeyfrom a string such asSHIFT+SHIFTand return an error instead.
b538534Changed window class name used interally so it wouldn't conflict withtray-iconcrate implementation.
1f9be3e(#47) Add support forCode::Backquoteon Linux.1f9be3e(#47) On Linux, fix hotkeypress/releaseevents order and sometimes missingreleaseevent when the modifiers have been already released before the key itself has been released.1f9be3e(#47) On Linux, improve the performance ofGlobalHotKeyManager::register_allandGlobalHotKeyManager::unregister_allto 2711x faster.
53961a1(#35) Support Pressed and Released stats of the hotkey, you can check the newly addedstatefield or using thestate()method on theGlobalHotKeyEvent.
fa47029Updatekeyboard-typesto0.7
b0975f9ExportCMD_OR_CTRLconst.dc9e619AddGlobalHotKeyEvent::idmethod.b960609ImplTryFrom<&str>andTryFrom<String>forHotKey.
589ecd9(#25) FixGlobalHotKeyManager::unregister_allactually registering the hotkeys instead of unregistering.
bbd3ffb(#23) Generate a hash-based id for hotkeys. Previously each hotkey had a unique id which is not necessary given that only one hotkey with the same combination can be used at a time.
- Support more variants for
HotKey::from_strand support case-insensitive htokey.
- On Windows, fix registering htokeys failing all the time.
- 65d1f6d fix(window): correctly check error result on 2023-02-13
- Fix crash on wayland, and emit a warning instead.
- 4c08d82 fix: emit error on non x11 window systems on 2023-02-13
- Update docs
- 6409e5d docs: update docs on 2023-02-08