[2.0.32] Unexpected keyboard shortcut behavior when the game is manually paused
Posted: Wed Feb 12, 2025 7:03 am
When the game is manually paused with the pause keyboard shortcut, keyboard shortcuts ignore windows that are still interactable, behaving as they would normally if the windows were not open.
The best example that I have that demonstrates why this should be considered a bug is with the tech tree screen. To reproduce, first open the tech tree, then press the keyboard shortcut to manually pause, then press escape. I would expect the keyboard shortcut to be picked up by the tech tree screen since it's still fully interactable, resulting in the tech tree screen being closed, but instead, the "game menu" window is opened, and it appears underneath the tech tree screen. You can even close it again underneath the tech tree screen by pressing escape again.
The main reason I care about this issue is for using the Factoriopedia while the game is paused - the back/forward buttons work, and they're even able to switch back and forth between the Factoriopedia window and the tech tree screen if your history stack is set up for it (for example, if you click on an "unlocked by" box in the Factoriopedia), but you're not able to use the keyboard shortcuts to do the same thing - only the buttons work.
The best example that I have that demonstrates why this should be considered a bug is with the tech tree screen. To reproduce, first open the tech tree, then press the keyboard shortcut to manually pause, then press escape. I would expect the keyboard shortcut to be picked up by the tech tree screen since it's still fully interactable, resulting in the tech tree screen being closed, but instead, the "game menu" window is opened, and it appears underneath the tech tree screen. You can even close it again underneath the tech tree screen by pressing escape again.
The main reason I care about this issue is for using the Factoriopedia while the game is paused - the back/forward buttons work, and they're even able to switch back and forth between the Factoriopedia window and the tech tree screen if your history stack is set up for it (for example, if you click on an "unlocked by" box in the Factoriopedia), but you're not able to use the keyboard shortcuts to do the same thing - only the buttons work.