Fix duplicate bit masks for caps lock and num lock (#863)

This commit is contained in:
Tim Straubinger 2024-06-16 15:04:33 +02:00 committed by GitHub
parent 61ff5ae1ce
commit 33b4e37223
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}
}