mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-13 23:17:09 +00:00
Fix accent prompt appearing when keys are held down on macOS
This commit is contained in:
parent
02242b9b34
commit
22be912788
1 changed files with 6 additions and 0 deletions
|
@ -647,6 +647,12 @@ void Session::exec()
|
||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Stop text input. SDL enables it by default
|
||||||
|
// when we initialize the video subsystem, but this
|
||||||
|
// causes an IME popup when certain keys are held down
|
||||||
|
// on macOS.
|
||||||
|
SDL_StopTextInput();
|
||||||
|
|
||||||
// Disable the screen saver
|
// Disable the screen saver
|
||||||
SDL_DisableScreenSaver();
|
SDL_DisableScreenSaver();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue