Skip to content

Commit 209511b

Browse files
committed
Revert Pinyin IME workaround which is ineffective on SDL3
The underlying SDL bug is now fixed upstream for SDL 3.4.2.
1 parent efa67fe commit 209511b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

app/streaming/input/input.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,21 +301,10 @@ void SdlInputHandler::notifyFocusLost()
301301
// Raise all keys that are currently pressed. If we don't do this, certain keys
302302
// used in shortcuts that cause focus loss (such as Alt+Tab) may get stuck down.
303303
raiseAllKeys();
304-
305-
#ifdef Q_OS_WIN32
306-
// Re-enable text input when window loses focus as a workaround for an SDL bug.
307-
// See #1617 for details.
308-
SDL_StartTextInput();
309-
#endif
310304
}
311305

312306
void SdlInputHandler::notifyFocusGained()
313307
{
314-
#ifdef Q_OS_WIN32
315-
// Disable text input when window gains focus to prevent IME popup interference.
316-
// See #1617 for details.
317-
SDL_StopTextInput();
318-
#endif
319308
}
320309

321310
bool SdlInputHandler::isCaptureActive()

0 commit comments

Comments
 (0)