Skip to content

Commit

Permalink
Fix duplicate bit masks for caps lock and num lock (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
timstr authored Jun 16, 2024
1 parent 61ff5ae commit 33b4e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -721,11 +721,11 @@ bitflags! {
/// Caps Lock was enabled for this key event.
///
/// **Note:** this is set for the initial press of Caps Lock itself.
const CAPS_LOCK = 0b0000_1000;
const CAPS_LOCK = 0b0000_0010;
/// Num Lock was enabled for this key event.
///
/// **Note:** this is set for the initial press of Num Lock itself.
const NUM_LOCK = 0b0000_1000;
const NUM_LOCK = 0b0000_0100;
const NONE = 0b0000_0000;
}
}
Expand Down

0 comments on commit 33b4e37

Please sign in to comment.