Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3cdb1a2

Browse files
committedMar 10, 2025·
Keep bitflags consts for backwards compat with serialized data
1 parent a8c3232 commit 3cdb1a2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/keyboard.rs

+6
Original file line numberDiff line numberDiff line change
@@ -1701,6 +1701,8 @@ bitflags! {
17011701
const ALT = 0b100 << 6;
17021702
/// This is the "windows" key on PC and "command" key on Mac.
17031703
const META = 0b100 << 9;
1704+
#[deprecated = "use META instead"]
1705+
const SUPER = Self::META.bits();
17041706
}
17051707
}
17061708

@@ -1757,5 +1759,9 @@ bitflags! {
17571759
const RALT = 0b0010_0000;
17581760
const LMETA = 0b0100_0000;
17591761
const RMETA = 0b1000_0000;
1762+
#[deprecated = "use LMETA instead"]
1763+
const LSUPER = Self::LMETA.bits();
1764+
#[deprecated = "use RMETA instead"]
1765+
const RSUPER = Self::RMETA.bits();
17601766
}
17611767
}

0 commit comments

Comments
 (0)
Please sign in to comment.