mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-15 21:22:40 +00:00
Key repeat is handled server-side, so don't send repeat events
This commit is contained in:
@@ -329,6 +329,12 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (event->repeat) {
|
||||||
|
// Ignore repeat key down events
|
||||||
|
SDL_assert(event->state == SDL_PRESSED);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Set modifier flags
|
// Set modifier flags
|
||||||
modifiers = 0;
|
modifiers = 0;
|
||||||
if (event->keysym.mod & KMOD_CTRL) {
|
if (event->keysym.mod & KMOD_CTRL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user