Use modifier workaround only on X11
It's a bug in Qt's xcb backend after all
This commit is contained in:
parent
bbad41e046
commit
a32f3a94b9
1 changed files with 1 additions and 1 deletions
|
|
@ -2763,7 +2763,7 @@ void InputField::keyPressEventInner(QKeyEvent *e) {
|
||||||
: (enter && shift)
|
: (enter && shift)
|
||||||
? (~Qt::ShiftModifier)
|
? (~Qt::ShiftModifier)
|
||||||
// Qt bug workaround https://bugreports.qt.io/browse/QTBUG-49771
|
// Qt bug workaround https://bugreports.qt.io/browse/QTBUG-49771
|
||||||
: (backspace && Platform::IsLinux())
|
: (backspace && Platform::IsX11())
|
||||||
? (Qt::ControlModifier)
|
? (Qt::ControlModifier)
|
||||||
: oldModifiers;
|
: oldModifiers;
|
||||||
const auto changeModifiers = (oldModifiers & ~allowedModifiers) != 0;
|
const auto changeModifiers = (oldModifiers & ~allowedModifiers) != 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue