Implement support for key events in the VNC plugin
Make sure we receive key events from the VNC client and forward them to the app through the QPA interface. Change-Id: I8d44d614670ec753e35ff36fa3ef2d74b07f4bbc Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
This commit is contained in:
parent
1955da90a0
commit
53f7e565db
@ -1088,9 +1088,8 @@ void QVncServer::keyEvent()
|
||||
else if (ev.keycode == Qt::Key_Alt)
|
||||
keymod = ev.down ? keymod | Qt::AltModifier :
|
||||
keymod & ~Qt::AltModifier;
|
||||
// #####
|
||||
// if (ev.unicode || ev.keycode)
|
||||
// QWSServer::sendKeyEvent(ev.unicode, ev.keycode, keymod, ev.down, false);
|
||||
if (ev.unicode || ev.keycode)
|
||||
QWindowSystemInterface::handleKeyEvent(0, ev.down ? QEvent::KeyPress : QEvent::KeyRelease, ev.keycode, keymod, QString(ev.unicode));
|
||||
handleMsg = false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user