From a32f3a94b94a6158db3aca2673af97a8eceb0948 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 19 May 2022 09:08:14 +0400 Subject: [PATCH] Use modifier workaround only on X11 It's a bug in Qt's xcb backend after all --- ui/widgets/input_fields.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/input_fields.cpp b/ui/widgets/input_fields.cpp index f22584b..0b0c1aa 100644 --- a/ui/widgets/input_fields.cpp +++ b/ui/widgets/input_fields.cpp @@ -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;