ddf5515
(#112 by @amrbashir) Support usingPause
orPauseBreak
key on Windows and Linux.
2c7397b
(#106 by @FabianLars) Fixed an issue causing compilation to fail for 32-bit targets.
8b13a61
RemovedSync
andSend
implementation forGlobalHotKeyManager
8b13a61
Updatewindows-sys
crate to0.59
c750004
(#92 by @IAmJSD) Fix a panic when parsingHotKey
from a string and return an error instead, if the hotkey string consists of only modifiers and doesn't contain a key.
e9d263c
Fix parsing ofMEDIATRACKPREV
andMEDIATRACKPREVIOUS
keys.
a468ede
(#75) Addserde
feature flag and implementDeserialize
andSerialize
forGlobalHotKeyEvent
,HotKeyState
andHotKey
types.a468ede
(#75) AddHotKey::into_string
method and implementDisplay
forHotKey
.
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
HotKeyParseError
error enum. - Removed
Error::UnrecognizedHotKeyCode
enum variant - Removed
Error::EmptyHotKeyToken
enum variant - Removed
Error::UnexpectedHotKeyFormat
enum variant - Changed
Error::HotKeyParseError
inner value fromString
to the newly addedHotKeyParseError
enum.
- Added
-
7d99bd7
(#61) Avoid panicing when parsing an invalidHotKey
from a string such asSHIFT+SHIFT
and return an error instead.
b538534
Changed window class name used interally so it wouldn't conflict withtray-icon
crate implementation.
1f9be3e
(#47) Add support forCode::Backquote
on Linux.1f9be3e
(#47) On Linux, fix hotkeypress/release
events order and sometimes missingrelease
event when the modifiers have been already released before the key itself has been released.1f9be3e
(#47) On Linux, improve the performance ofGlobalHotKeyManager::register_all
andGlobalHotKeyManager::unregister_all
to 2711x faster.
53961a1
(#35) Support Pressed and Released stats of the hotkey, you can check the newly addedstate
field or using thestate()
method on theGlobalHotKeyEvent
.
fa47029
Updatekeyboard-types
to0.7
b0975f9
ExportCMD_OR_CTRL
const.dc9e619
AddGlobalHotKeyEvent::id
method.b960609
ImplTryFrom<&str>
andTryFrom<String>
forHotKey
.
589ecd9
(#25) FixGlobalHotKeyManager::unregister_all
actually 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_str
and 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