mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-18 02:22:52 +00:00
Allow keyboard input when the mouse is not captured
This commit is contained in:
parent
0892f0b0bb
commit
07128cc7fe
@ -354,11 +354,6 @@ void SdlInputHandler::handleKeyEvent(SDL_KeyboardEvent* event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isCaptureActive()) {
|
|
||||||
// Not capturing
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event->repeat) {
|
if (event->repeat) {
|
||||||
// Ignore repeat key down events
|
// Ignore repeat key down events
|
||||||
SDL_assert(event->state == SDL_PRESSED);
|
SDL_assert(event->state == SDL_PRESSED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user