buttonrebinds: Fix Meta modifier

Devices send evdev keycodes not xkb keycodes.
This commit is contained in:
David Redondo 2022-09-02 10:22:16 +02:00
parent e22c6160fa
commit 2f03d1f940

View file

@ -171,7 +171,7 @@ bool ButtonRebindsFilter::pointerEvent(QMouseEvent *event, quint32 nativeButton)
sendKey(KEY_LEFTALT);
}
if (key & Qt::MetaModifier) {
sendKey(XKB_KEY_Super_L);
sendKey(KEY_LEFTMETA);
}
sendKey(keyCode.value());