From 037ceb272c4dd2eb456e18b61e374c1fa759d109 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sat, 18 May 2024 15:14:19 +0400 Subject: [PATCH] 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 https://github.com/qt/qtbase/commit/4b0b87b5c2173ee70eacfdd7cea08aea8a5164c8 --- ui/widgets/fields/input_field.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/ui/widgets/fields/input_field.cpp b/ui/widgets/fields/input_field.cpp index 8adb5fc..e674c2d 100644 --- a/ui/widgets/fields/input_field.cpp +++ b/ui/widgets/fields/input_field.cpp @@ -2941,9 +2941,6 @@ void InputField::keyPressEventInner(QKeyEvent *e) { ? (~Qt::ControlModifier) : (enter && shift) ? (~Qt::ShiftModifier) - // Qt bug workaround https://bugreports.qt.io/browse/QTBUG-49771 - : (backspace && Platform::IsX11()) - ? (Qt::ControlModifier) : oldModifiers; const auto changeModifiers = (oldModifiers & ~allowedModifiers) != 0; if (changeModifiers) {