Added the ability to quite the RDP session by pressing "r-ctrl + shift + D". The reason for this is when in full screen I have no way to exit from xrdp if I don't want to close my session.

This commit is contained in:
Dan Holliday 2023-06-13 19:24:09 +01:00 committed by akallabeth
parent 72b614262f
commit f2ae9c00be

View File

@ -450,6 +450,12 @@ BOOL sdlInput::keyboard_handle_event(const SDL_KeyboardEvent* ev)
keyboard_grab(ev->windowID, _sdl->grab_kbd ? SDL_FALSE : SDL_TRUE);
}
return TRUE;
case SDL_SCANCODE_D:
if (ev->type == SDL_KEYDOWN)
{
freerdp_abort_connect_context(_sdl->context());
}
return true;
default:
break;
}