godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.23k stars 21.22k forks source link

Shortcuts are not functional after closing a subwindow while a modifier key is pressed #77220

Open KoBeWi opened 1 year ago

KoBeWi commented 1 year ago

Godot version

4.1 dev2

System information

Windows 10 x64

Issue description

When there is a subwindow, e.g. popup or dialog and you close it while holding e.g. Ctrl, all shortcuts using Ctrl will not trigger until you release it and press again.

Steps to reproduce

  1. Open a scene
  2. Press Ctrl + S and don't release Ctrl
  3. A save progress dialog appears and disappears
  4. Ctrl + S doesn't work anymore until you release Ctrl

Minimal reproduction project

N/A

ghost commented 1 year ago

The issue is also present in the current release: v4.0.2.stable.official [7a0977ce2].

RoyBerube commented 1 year ago

Windows 10 64 bit. Did some testing and found some odd behaviour. Can be replicated either using an extra display or with godot window reduced in size.

Press ctrl-s while focused on the desktop. While holding down ctrl, refocus in the Godot editor and press s. Ctrl-s action is not recognized.

Then try holding ctrl while focused on the desktop. While holding ctrl, refocus on Godot editor. Ctrl-s action is recognized and the save popup displays briefly.

Sauermann commented 1 year ago

Can confirm the issue on

Can't reproduce the issue on

So it's Windows-platform specific.

@RoyBerube I can confirm your issue on Windows & Linux, so it looks like it warrants a separate bug-report.