Hello everyone,
Consider the following situation. One decided to run an application using its desktop shortcut. They selected the shortcut and pressed the Enter key. Right before the actual key pressing, a new window with, for instance, an OK/Cancel prompt from another application has appeared. Since the Enter key was pressed immediately after that, it is equivalent to pressing the OK button, I guess. The problem is that the user only wanted to run the shortcut, they haven't even read the prompt.
To summarize, when a new window appears, Esc/Enter key pressings are "redirected" to that window, and that might not be desired. If my previous example was not clear enough, consider one typed a command in a terminal window, and they are intended to press the Enter key to run the command. Then, a prompt window appears, and "consumes" that Enter key pressing.
How can I disable this? How can I force the current window to remain active when a new window appears? I have looked through the MATE Tweak settings, but unfortunately, haven't found anything appropriate. There is the "Do not auto-maximize new windows" option, but it is not exactly the same, and even if auto-maximized windows become active, that is not helpful, since I have this feature disabled.