1
0
Fork 0
forked from wry/wry

config: implement on-release shortcuts

This commit is contained in:
Julian Orth 2024-04-15 16:16:50 +02:00
parent af3280652e
commit 6ee4fdb9f4
6 changed files with 25 additions and 8 deletions

View file

@ -36,6 +36,11 @@ pub const NUM: Modifiers = MOD2;
/// Alias for `MOD4`.
pub const LOGO: Modifiers = MOD4;
/// Synthetic modifier matching key release events.
///
/// This can be used to execute a callback on key release.
pub const RELEASE: Modifiers = Modifiers(1 << 31);
impl BitOr for Modifiers {
type Output = Self;