mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Revert Pinyin IME workaround which is ineffective on SDL3
The underlying SDL bug is now fixed upstream for SDL 3.4.2.
This commit is contained in:
@@ -301,21 +301,10 @@ void SdlInputHandler::notifyFocusLost()
|
|||||||
// Raise all keys that are currently pressed. If we don't do this, certain keys
|
// Raise all keys that are currently pressed. If we don't do this, certain keys
|
||||||
// used in shortcuts that cause focus loss (such as Alt+Tab) may get stuck down.
|
// used in shortcuts that cause focus loss (such as Alt+Tab) may get stuck down.
|
||||||
raiseAllKeys();
|
raiseAllKeys();
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
// Re-enable text input when window loses focus as a workaround for an SDL bug.
|
|
||||||
// See #1617 for details.
|
|
||||||
SDL_StartTextInput();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SdlInputHandler::notifyFocusGained()
|
void SdlInputHandler::notifyFocusGained()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_WIN32
|
|
||||||
// Disable text input when window gains focus to prevent IME popup interference.
|
|
||||||
// See #1617 for details.
|
|
||||||
SDL_StopTextInput();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SdlInputHandler::isCaptureActive()
|
bool SdlInputHandler::isCaptureActive()
|
||||||
|
|||||||
Reference in New Issue
Block a user