Add support for keyboard key press and release from fake input protocol
Summary: Depends on D23766. Reviewers: davidedmundson, #plasma, romangg Reviewed By: davidedmundson, #plasma Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D23769
This commit is contained in:
parent
929866b1a0
commit
3faeb543a7
1 changed files with 14 additions and 0 deletions
14
input.cpp
14
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);
|
||||
|
|
Loading…
Reference in a new issue