mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 20:25:34 +08:00
[fix] fix key press/release event
This commit is contained in:
@@ -223,7 +223,7 @@ void Render::OnReceiveDataBufferCb(const char *data, size_t size,
|
|||||||
}
|
}
|
||||||
} else if (ControlType::keyboard == remote_action.type) {
|
} else if (ControlType::keyboard == remote_action.type) {
|
||||||
render->ProcessKeyEvent((int)remote_action.k.key_value,
|
render->ProcessKeyEvent((int)remote_action.k.key_value,
|
||||||
remote_action.k.flag);
|
remote_action.k.flag == KeyFlag::key_down);
|
||||||
} else if (ControlType::host_infomation == remote_action.type) {
|
} else if (ControlType::host_infomation == remote_action.type) {
|
||||||
render->host_name_ =
|
render->host_name_ =
|
||||||
std::string(remote_action.i.host_name, remote_action.i.host_name_size);
|
std::string(remote_action.i.host_name, remote_action.i.host_name_size);
|
||||||
|
|||||||
Reference in New Issue
Block a user