Hook up queryKeyboardModifers
Can be useful when upon enter a modifiers event is received but no key event so no QKeyEvent is generated. Fixes: QTBUG-62786 Change-Id: I30b57fc78ce6d54d8f644ca95ba40e7e26eb24ed Reviewed-by: Marco Martin <mart@kde.org> Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
parent
c0138b02a2
commit
19ca1a7a95
@ -284,6 +284,14 @@ QWaylandDisplay *QWaylandIntegration::display() const
|
|||||||
return mDisplay.data();
|
return mDisplay.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Qt::KeyboardModifiers QWaylandIntegration::queryKeyboardModifiers() const
|
||||||
|
{
|
||||||
|
if (auto *seat = mDisplay->currentInputDevice()) {
|
||||||
|
return seat->modifiers();
|
||||||
|
}
|
||||||
|
return Qt::NoModifier;
|
||||||
|
}
|
||||||
|
|
||||||
QList<int> QWaylandIntegration::possibleKeys(const QKeyEvent *event) const
|
QList<int> QWaylandIntegration::possibleKeys(const QKeyEvent *event) const
|
||||||
{
|
{
|
||||||
if (auto *seat = mDisplay->currentInputDevice())
|
if (auto *seat = mDisplay->currentInputDevice())
|
||||||
|
@ -109,6 +109,8 @@ public:
|
|||||||
|
|
||||||
QWaylandDisplay *display() const;
|
QWaylandDisplay *display() const;
|
||||||
|
|
||||||
|
Qt::KeyboardModifiers queryKeyboardModifiers() const override;
|
||||||
|
|
||||||
QList<int> possibleKeys(const QKeyEvent *event) const override;
|
QList<int> possibleKeys(const QKeyEvent *event) const override;
|
||||||
|
|
||||||
QStringList themeNames() const override;
|
QStringList themeNames() const override;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user