Accessibility Linux: Make a full copy of a key event
Otherwise native values (scan code, modifiers, virtual key) of the key event will be lost if an event listener is registered. Change-Id: I5eebb1f91ad7de6801f7efb0bf0891c4430f9cf5 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
This commit is contained in:
parent
e8e1616cf2
commit
50398708cd
@ -196,7 +196,9 @@ bool QSpiApplicationAdaptor::eventFilter(QObject *target, QEvent *event)
|
||||
|
||||
QKeyEvent* QSpiApplicationAdaptor::copyKeyEvent(QKeyEvent* old)
|
||||
{
|
||||
return new QKeyEvent(old->type(), old->key(), old->modifiers(), old->text(), old->isAutoRepeat(), old->count());
|
||||
return new QKeyEvent(old->type(), old->key(), old->modifiers(),
|
||||
old->nativeScanCode(), old->nativeVirtualKey(), old->nativeModifiers(),
|
||||
old->text(), old->isAutoRepeat(), old->count());
|
||||
}
|
||||
|
||||
void QSpiApplicationAdaptor::notifyKeyboardListenerCallback(const QDBusMessage& message)
|
||||
|
Loading…
Reference in New Issue
Block a user