Remove a no longer needed workaround for QTextEdit on X11

It's fixed in Qt 6.2 and seem to be even backported to 5.15

4b0b87b5c2
This commit is contained in:
Ilya Fedin 2024-05-18 15:14:19 +04:00 committed by John Preston
parent 59984fe98e
commit 037ceb272c

View file

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