mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
Release all keyboard keys on focus loss (fixes #1987)
This commit is contained in:
@ -916,6 +916,7 @@ void MainWindow::onAppStateChanged(Qt::ApplicationState state)
|
||||
{
|
||||
if (state == Qt::ApplicationInactive)
|
||||
{
|
||||
Input::KeyReleaseAll();
|
||||
if (Config::PauseLostFocus && emuThread->emuIsRunning())
|
||||
emuThread->emuPause();
|
||||
}
|
||||
|
Reference in New Issue
Block a user