Skip to content

Commit

Permalink
fix: fix parsing of MEDIATRACKPREVIOUS
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed May 27, 2024
1 parent 91373c8 commit e9d263c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/media-track-prev-typo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"global-hotkey": "patch"
---

Fix parsing of `MEDIATRACKPREV` and `MEDIATRACKPREVIOUS` keys.
2 changes: 1 addition & 1 deletion src/hotkey.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ fn parse_key(key: &str) -> Result<Code, HotKeyParseError> {
"MEDIAPLAYPAUSE" => Ok(MediaPlayPause),
"MEDIASTOP" => Ok(MediaStop),
"MEDIATRACKNEXT" => Ok(MediaTrackNext),
"MEDIATRACTPREV" | "MEDIATRACTPREVIOUS" => Ok(MediaTrackPrevious),
"MEDIATRACKPREV" | "MEDIATRACKPREVIOUS" => Ok(MediaTrackPrevious),
"F13" => Ok(F13),
"F14" => Ok(F14),
"F15" => Ok(F15),
Expand Down

0 comments on commit e9d263c

Please sign in to comment.