Skip to content

Commit 05d8b62

Browse files
authored
x11: fix key modifiers mappings (#194)
1 parent f7326ce commit 05d8b62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/x11/keyboard.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ pub(super) fn key_mods(mods: KeyButMask) -> Modifiers {
370370
// X11's mod keys are configurable, but this seems
371371
// like a reasonable default for US keyboards, at least,
372372
// 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),
373+
(KeyButMask::MOD1, Modifiers::ALT),
374+
(KeyButMask::MOD2, Modifiers::NUM_LOCK),
375+
(KeyButMask::MOD4, Modifiers::META),
376376
(KeyButMask::LOCK, Modifiers::CAPS_LOCK),
377377
];
378378
for (mask, modifiers) in &key_masks {

0 commit comments

Comments
 (0)