Use modifier workaround only on X11

It's a bug in Qt's xcb backend after all
This commit is contained in:
Ilya Fedin 2022-05-19 09:08:14 +04:00 committed by John Preston
parent bbad41e046
commit a32f3a94b9

View file

@ -2763,7 +2763,7 @@ void InputField::keyPressEventInner(QKeyEvent *e) {
: (enter && shift)
? (~Qt::ShiftModifier)
// Qt bug workaround https://bugreports.qt.io/browse/QTBUG-49771
: (backspace && Platform::IsLinux())
: (backspace && Platform::IsX11())
? (Qt::ControlModifier)
: oldModifiers;
const auto changeModifiers = (oldModifiers & ~allowedModifiers) != 0;