Skip to content

Commit 33b4e37

Browse files
authored
Fix duplicate bit masks for caps lock and num lock (#863)
1 parent 61ff5ae commit 33b4e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/event.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -721,11 +721,11 @@ bitflags! {
721721
/// Caps Lock was enabled for this key event.
722722
///
723723
/// **Note:** this is set for the initial press of Caps Lock itself.
724-
const CAPS_LOCK = 0b0000_1000;
724+
const CAPS_LOCK = 0b0000_0010;
725725
/// Num Lock was enabled for this key event.
726726
///
727727
/// **Note:** this is set for the initial press of Num Lock itself.
728-
const NUM_LOCK = 0b0000_1000;
728+
const NUM_LOCK = 0b0000_0100;
729729
const NONE = 0b0000_0000;
730730
}
731731
}

0 commit comments

Comments
 (0)