diff --git a/input.cpp b/input.cpp index 74c352af66..8f57a1e57b 100644 --- a/input.cpp +++ b/input.cpp @@ -1780,6 +1780,20 @@ void InputRedirection::setupWorkspace() m_touch->frame(); } ); + connect(device, &FakeInputDevice::keyboardKeyPressRequested, this, + [this] (quint32 button) { + // TODO: Fix time + m_keyboard->processKey(button, InputRedirection::KeyboardKeyPressed, 0); + waylandServer()->simulateUserActivity(); + } + ); + connect(device, &FakeInputDevice::keyboardKeyReleaseRequested, this, + [this] (quint32 button) { + // TODO: Fix time + m_keyboard->processKey(button, InputRedirection::KeyboardKeyReleased, 0); + waylandServer()->simulateUserActivity(); + } + ); } ); connect(workspace(), &Workspace::configChanged, this, &InputRedirection::reconfigure);