We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7326ce commit 05d8b62Copy full SHA for 05d8b62
src/x11/keyboard.rs
@@ -370,9 +370,9 @@ pub(super) fn key_mods(mods: KeyButMask) -> Modifiers {
370
// X11's mod keys are configurable, but this seems
371
// like a reasonable default for US keyboards, at least,
372
// where the "windows" key seems to be MOD_MASK_4.
373
- (KeyButMask::BUTTON1, Modifiers::ALT),
374
- (KeyButMask::BUTTON2, Modifiers::NUM_LOCK),
375
- (KeyButMask::BUTTON4, Modifiers::META),
+ (KeyButMask::MOD1, Modifiers::ALT),
+ (KeyButMask::MOD2, Modifiers::NUM_LOCK),
+ (KeyButMask::MOD4, Modifiers::META),
376
(KeyButMask::LOCK, Modifiers::CAPS_LOCK),
377
];
378
for (mask, modifiers) in &key_masks {
0 commit comments