2
Good afternoon.
I have the following problem: I have an application where the Ctrl key activates an application event, and some users use RDP(remote access) to use this application, the problem is that the Ctrl key is triggered every time the user moves the RDP window or change application and back to the RDP.
For example:
procedure TForm1.FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if (Key = VK_CONTROL) then
ShowMessage('Tecla Ctrl Pressionada');
end;
I could see that the application detects the message WM_KEYUP and treats, which ends up triggering the Onkeyup event with parameter 17(Ctrl), simulating that the Ctrl key was pressed.
I wonder if anyone has any idea if this behavior is a Delphi/RDP bug and if they have any possible solution.