Skip to content

Latest commit

 

History

History
89 lines (54 loc) · 6.51 KB

CHANGELOG.md

File metadata and controls

89 lines (54 loc) · 6.51 KB

Changelog

[0.5.4]

  • e9d263c Fix parsing of MEDIATRACKPREV and MEDIATRACKPREVIOUS keys.

[0.5.3]

  • a468ede(#75) Add serde feature flag and implement Deserialize and Serialize for GlobalHotKeyEvent, HotKeyState and HotKey types.
  • a468ede(#75) Add HotKey::into_string method and implement Display for HotKey.

[0.5.2]

  • 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.

[0.5.1]

  • 89199d9(#64) Add no-op implementations for unsupported targets.

[0.5.0]

  • 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 from String to the newly added HotKeyParseError enum.
  • 7d99bd7(#61) Avoid panicing when parsing an invalid HotKey from a string such as SHIFT+SHIFT and return an error instead.

[0.4.2]

  • b538534 Changed window class name used interally so it wouldn't conflict with tray-icon crate implementation.

[0.4.1]

  • 1f9be3e(#47) Add support for Code::Backquote on Linux.
  • 1f9be3e(#47) On Linux, fix hotkey press/release events order and sometimes missing release event when the modifiers have been already released before the key itself has been released.
  • 1f9be3e(#47) On Linux, improve the performance of GlobalHotKeyManager::register_all and GlobalHotKeyManager::unregister_all to 2711x faster.

[0.4.0]

  • 53961a1(#35) Support Pressed and Released stats of the hotkey, you can check the newly added state field or using the state() method on the GlobalHotKeyEvent.

[0.3.0]

  • fa47029 Update keyboard-types to 0.7

[0.2.4]

  • b0975f9 Export CMD_OR_CTRL const.
  • dc9e619 Add GlobalHotKeyEvent::id method.
  • b960609 Impl TryFrom<&str> and TryFrom<String> for HotKey.

[0.2.3]

  • 589ecd9(#25) Fix GlobalHotKeyManager::unregister_all actually registering the hotkeys instead of unregistering.

[0.2.2]

  • 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.

[0.2.1]

  • b503530(#20) Make GlobalHotKeyManager Send + Sync on macOS.

[0.2.0]

  • Support more variants for HotKey::from_str and support case-insensitive htokey.
    • 25cbda5 feat: add more variants and case-insensitive hotkey parsing (#19) on 2023-04-19

[0.1.2]

  • 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

[0.1.1]

  • Update docs
    • 6409e5d docs: update docs on 2023-02-08

[0.1.0]

  • Initial Release.
    • 72873f6 chore: add initial release change file on 2023-01-16
    • d0f1d9c chore: adjust change file on 2023-01-16