SUMMARY When you enter edit mode from the desktop you cannot use the Esc key to exit from it. This doesn't happen when you enter edit mode when there are open (and/or focused?) windows, pressing Esc on this last case exits edit mode properly. STEPS TO REPRODUCE 1. Have no open windows or have all your windows minimized 2. Enter edit mode 3. Press the Esc key OBSERVED RESULT You are still on edit mode. :( EXPECTED RESULT You exit edit mode. SOFTWARE/OS VERSIONS Operating System: Gentoo Linux KDE Plasma Version: 5.24.4 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3 Graphics Platform: X11
You say it only happens when there are no windows open, is that correct? What specific method did you enter edit mode?
> You say it only happens when there are no windows open, is that correct? When there are no windows opens or when all windows are minimized and you can only see the desktop. > What specific method did you enter edit mode? It happens when I enter edit mode with the shortcut (Alt+D, E) or when selecting the right option on the contextual menu of the desktop or panel(s).
Can confirm. I suspect what happens is that when there are any windows visible, entering Edit mode also triggers the "Show Desktop" effect, which deactivates with the Escape key. And when it deactivates, it automatically exits edit mode. But when no windows were visible, the "Show Desktop" doesn't get triggered, so it doesn't handle the Escape key, which means the desktop itself has to handle it, and it doesn't.
This seems to work with the new Edit Mode in plasma 6.1. If you enter the global edit mode through the desktop context menu, pressing Escape will close edit mode. (Similarly for entering via the Alt-D E shortcut) If you enter edit mode by right-clicking the panel, pressing Escape will close the Panel Settings interface, and pressing Escape a second time will exit Edit Mode. This works if there are no open windows, only minimized windows, or both visible and minimized windows.
Yup, this is fixed with the new Edit Mode UX in Plasma 6.1!