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:
parent
59984fe98e
commit
037ceb272c
1 changed files with 0 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue