Skip to content

Commit

Permalink
Rename Modifier::Win to Modifier::Super (#469)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shute052 authored Feb 19, 2024
1 parent c97d159 commit e87af97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## Unreleased

### Breaking Changes

- `Modifier::Win` has been renamed to `Modifier::Super`, consistent with `KeyCode::SuperLeft` and `KeyCode::SuperRight`.

## Version 0.12.1

### Usability
Expand Down
4 changes: 2 additions & 2 deletions src/user_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ pub enum Modifier {
/// The key that makes letters capitalized, corresponding to [`KeyCode::ShiftLeft`] and [`KeyCode::ShiftRight`]
Shift,
/// The OS or "Windows" key, corresponding to [`KeyCode::SuperLeft`] and [`KeyCode::SuperRight`].
Win,
Super,
}

impl Modifier {
Expand All @@ -343,7 +343,7 @@ impl Modifier {
Modifier::Alt => [KeyCode::AltLeft, KeyCode::AltRight],
Modifier::Control => [KeyCode::ControlLeft, KeyCode::ControlRight],
Modifier::Shift => [KeyCode::ShiftLeft, KeyCode::ShiftRight],
Modifier::Win => [KeyCode::SuperLeft, KeyCode::SuperRight],
Modifier::Super => [KeyCode::SuperLeft, KeyCode::SuperRight],
}
}
}
Expand Down

0 comments on commit e87af97

Please sign in to comment.